Oli Ward
Forum Replies Created
-
Same.
Also broken on this tutorial on the same subject:
https://wphow.org/how-to-add-a-custom-sharing-service-to-jetpack/#themify_builder_content-3302
Thanks Matt, I can confirm this has fixed colorbox problem for me, I have removed my deregistering of jquery.colorbox v1.3.19, and all is good.
This is with Monitor Background Requests for False Positives enabled for both front-end and admin side.
This was throwing issues on our site and affecting other jQuery.
I simply swapped out the jQuery ColourBox plugin that WordFence is loading for the most recent, using the
wp_enqueue_scripts
action hook:// after all other scripts are queued (priority 11), run our own un-queue and re-queue add_action( 'wp_enqueue_scripts', 'register_own_colorbox_script', 11 ); function register_own_colorbox_script(){ // deregister WordFence's version wp_deregister_script('jquery.wfcolorbox'); // register the up-to-date 1.6.4 version instead wp_enqueue_script('jquery.wfcolorbox', 'https://cdnjs.cloudflare.com/ajax/libs/jquery.colorbox/1.6.4/jquery.colorbox-min.js', array('jquery'), '1.6.4'); }
You might also want to queue the CSS for most recent ColorBox too.
I can confirm the same, but sharing to Twitter.
I believe due to
esc_attr()
on line 99:$strPageTitle = esc_attr(strip_tags($strPageTitle));
This is from the plugin file
simple-share-buttons-adder/inc/ssba_buttons.php
(version 6.1.1).Which WordPress documentation tells us
Encodes the <, >, &, ” and ‘ (less than, greater than, ampersand, double quote and single quote) characters.
I believe it is encoding apostrophe to HTML entity, which is then used directly by Twitter, or the email sharing functionality.
I’m not sure if it is relevant, but I’m directly calling the
ssba_buttons()
function, not usingdo_shortcode()
.Thank you, will do.
For reference, appears to be this issue.
Sorry, yes it is on the Pro version.
See screenshot here: https://imgur.com/j74v8yX