diff options
Diffstat (limited to 'plugins/jetpack/extensions/blocks/tiled-gallery/tiled-gallery.php')
-rw-r--r-- | plugins/jetpack/extensions/blocks/tiled-gallery/tiled-gallery.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/jetpack/extensions/blocks/tiled-gallery/tiled-gallery.php b/plugins/jetpack/extensions/blocks/tiled-gallery/tiled-gallery.php index bd7cb88b..183ed0b0 100644 --- a/plugins/jetpack/extensions/blocks/tiled-gallery/tiled-gallery.php +++ b/plugins/jetpack/extensions/blocks/tiled-gallery/tiled-gallery.php @@ -61,8 +61,8 @@ class Tiled_Gallery { $is_squareish_layout = self::is_squareish_layout( $attr ); - // Jetpack_Plan does not exist on WordPress.com. - if ( class_exists( 'Jetpack_Plan' ) ) { + // Jetpack_Plan::get does not exist on WordPress.com. + if ( method_exists( 'Jetpack_Plan', 'get' ) ) { $jetpack_plan = Jetpack_Plan::get(); wp_localize_script( 'jetpack-gallery-settings', 'jetpack_plan', array( 'data' => $jetpack_plan['product_slug'] ) ); } |