Jetpack 3.8.2 – Photon and YouTube Shortcode Fixes

Jetpack 3.8.2 is out! In this release, we focused on fixing a few specific and annoying bugs that popped up.

Jetpack – Supercharge your WordPress

Photon:

We fixed a regression created in version 3.8.1 where Photon did not respect some custom image sizes from other plugins or themes. Photon respects all image sizes again.

YouTube Shortcode:

WordPress 4.4 made some changes to the way Shortcodes are parsed, which broke our YouTube shortcode.  We’re now filtering this shortcode to output properly so you don’t need to go back update your shortcodes in your existing posts – we’ve taken care of that for you.

Wufoo Shortcode:

We’ve tightened up security in the Wufoo shortcode.  If you use this shortcode, you should upgrade to 3.8.2 as soon as possible.

Other minor fixes:

We’ve also cleared up a couple very minor bugs with Carousel, Publicize, Google+ widget, and Infinite Scroll.

Contributors for this release include Aaron Graham, Alex Mills, Alexander Concha, Brandon Kraft, Derek Smart, Eduardo Reveles, Elio Rivero, Eric Binnion, Igor Zinovyev, Jeremy Herve, Kat Hagan, Lance Willett, Miguel Lezama, Rocco Tripaldi, Sam Hotchkiss, and Takashi Irie.

Thank you for your contributions!

See full changelog.

Posted in Releases | Tagged , , , | 3 Comments

How to disable specific shortcodes in Jetpack

Jetpack includes many shortcodes allowing you to embed videos, audio files, images, and other media into your posts.

If you want to deactivate a specific shortcode without deactivating the Shortcodes module, you can add the following code to your theme’s functions.php file, or to a functionality plugin:

function my_remove_shortcode_function( $shortcodes ) {
	$jetpack_shortcodes_dir = WP_CONTENT_DIR . '/plugins/jetpack/modules/shortcodes/';
	
	$shortcodes_to_unload = array( 'ted.php', 'soundcloud.php', );

	foreach ( $shortcodes_to_unload as $shortcode ) {
		if ( $key = array_search( $jetpack_shortcodes_dir . $shortcode, $shortcodes ) ) {
			unset( $shortcodes[$key] );
		}
	}
		
	return $shortcodes;
}
add_filter( 'jetpack_shortcodes_to_include', 'my_remove_shortcode_function' );

In the code above, you’ll need to add to or remove shortcodes from the $shortcodes_to_unload array. It requires the file name of the shortcode you want to deactivate.

Posted in Code snippets, Tips & Tricks | Tagged | Comments Off on How to disable specific shortcodes in Jetpack
  • Recent Comments

    Jen H. on Building a Beautiful Photoblog…
    Leo on Building a Beautiful Photoblog…
    David Bennett on Building a Beautiful Photoblog…
    Jen H. on Building a Beautiful Photoblog…
    Soni on Building a Beautiful Photoblog…
  • Archives

  • Enter your email address to follow this blog and receive notifications of new posts by email.

  • Install Jetpack to see our line-up of features.

    Install Jetpack Now

    Don’t need all Jetpack’s features? No problem. Only activate what you need!

    Follow

    Get every new post delivered to your Inbox.

    Join 56,444 other followers