PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3-a.1
Jetpack – WP Security, Backup, Speed, & Growth v16.3-a.1
16.3-a.3 16.3-a.1 16.2 16.2-beta 12.0.3 12.1.3 12.2.3 12.3.2 12.4.2 12.5.2 12.6.4 12.7.3 12.8.3 12.9.5 13.0.2 13.1.5 13.2.4 13.3.3 13.4.5 13.5.2 13.6.2 13.7.2 13.8.3 13.9.2 14.0.1 All 504 releases
← All changes | modules/tiled-gallery/tiled-gallery.php +9 -2 13.5.216.3-a.1 View file →
@@ -3,8 +3,12 @@
3 3 use Automattic\Jetpack\Assets;
4 4 use Automattic\Jetpack\Image_CDN\Image_CDN;
5 5 use Automattic\Jetpack\Status;
6 6
7 +if ( ! defined( 'ABSPATH' ) ) {
8 + exit( 0 );
9 +}
10 +
7 11 // Include the class file containing methods for rounding constrained array elements.
8 12 // Here the constrained array element is the dimension of a row, group or an image in the tiled gallery.
9 13 require_once __DIR__ . '/math/class-constrained-array-rounding.php';
10 14
@@ -67,9 +71,9 @@
67 71 $this->atts = shortcode_atts(
68 72 array(
69 73 'order' => 'ASC',
70 74 'orderby' => 'menu_order ID',
71 - 'id' => isset( $post->ID ) ? $post->ID : 0,
75 + 'id' => $post->ID ?? 0,
72 76 'include' => '',
73 77 'exclude' => '',
74 78 'type' => '',
75 79 'grayscale' => false,
@@ -181,9 +185,12 @@
181 185 'modules/tiled-gallery/tiled-gallery/tiled-gallery.js'
182 186 ),
183 187 array(),
184 188 JETPACK__VERSION,
185 - false
189 + array(
190 + 'in_footer' => true,
191 + 'strategy' => 'defer',
192 + )
186 193 );
187 194 wp_enqueue_style( 'tiled-gallery', plugins_url( 'tiled-gallery/tiled-gallery.css', __FILE__ ), array(), '2023-08-21' );
188 195 wp_style_add_data( 'tiled-gallery', 'rtl', 'replace' );
189 196 }