jwsand
Forum Replies Created
-
Chip Bennett,
Your solution is great. There is one problem with it though. You are missing the version when calling the wp_register_script function. Even though it is optional, you call calling “false” in its place, which defaults to 0 as the version, not what the boolean is meant for. The false is meant for whether you are putting the code in the <head> or at the end of the <body>. Therefore your solution modified would look like this:function mytheme_custom_scripts() { if ( ! is_admin() ) { $scriptsrc = get_stylesheet_directory_uri() . '/js/'; wp_register_script( 'myhandle', $scriptsrc . 'myscript.js', 'jquery', '1.0', false ); wp_enqueue_script( 'myhandle' ); } } add_action( 'wp_enqueue_scripts', 'mytheme_custom_scripts' );
After logging into Paypal, it ask for a “Notification URL” under the Edit instanct Payment Notification (IPN) settings. What would I put as the Notification URL? Just the Domain name? Or does the plugin require a particular URL address?
DavidM,
The transactions say “No Transactions have been found, patience is a virtue.” I went onto Paypal and found the IPN, so I will get that updated and try it again. Thank you for everyone’s help.Where would I find the IPN log?
I am not an “official” voice for the plug in, but I do understand why @georgestarcher edit worked… I believe the proper way to fix this is to edit the following lines in the mediaelement-js-wp.php file (lines 177, 178, and 179):
'preload' => 'false', 'autoplay' => 'false', 'loop' => 'false',
To
'preload' => false, 'autoplay' => false, 'loop' => false,
What is happening here is that the code below this array, lines 188 through 238, is looking to see if the variables are true or not. If they are true then they set the option. The problem with the code is that the array defaults are set to strings instead of a bool. Therefore the variable, set as a string to false, is always true. So if you were to not put any argument into the short code then the default would be used, which in this case is ‘false’ as a string. Well the code below the array is looking to see if that variable is defined, which it is, therefore the if statement is true so it then defines the option/attribute. Therefore by removing the quotes in the code around the ‘false’ will change it to a bool default. In fact, the defaults of:
'duration' => 'true', 'progress' => 'true', 'fullscreen' => 'true', 'volume' => 'true',
Should also have the quotes removed under this same theory.
I think I found a solution, well it fixed it for me.
In the filemediaelement-js-wp.php line 179
change'loop' => 'false',
to
'loop' => false,
Basically what was happening is that $loop was being defined as a string (with the quotes) instead of a bool so it was always true… then on line 237 it changed loop: true because $loop was defined.
I am having the same problem. Seems like the loop=”false” as documented does not work. Is there another solution to stop the looping?
Forum: Fixing WordPress
In reply to: delete user hook incomplete?Maybe it would have to be added to the core.
Forum: Plugins
In reply to: Select user role at registrationForum: Plugins
In reply to: [Plugin: Enable Media Replace] deletion of old filesFrom what I have studied it looks like, but I am not 100% sure, the other images are stored in a serialized format in the database. Maybe an easy solution would be to unserialize the data to identify the thumbnails. You can see the PHP function here https://www.php.net/manual/en/function.unserialize.php
Forum: Fixing WordPress
In reply to: Short Codes in TextareaI tried to put <code >[shortcode]< /cod> but that did not work.