PluginProbe
Jetpack – WP Security, Backup, Speed, & Growth / 16.3
Jetpack – WP Security, Backup, Speed, & Growth v16.3
16.3 16.3-beta 16.3-a.5 16.3-a.7 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 All 508 releases
← All changes | modules/tiled-gallery/tiled-gallery/templates/square-layout.php +10 -3 12.5.2 → 16.3 View file →
@@ -1,12 +1,19 @@
1 1 <?php
2 2 /**
3 3 * Square layout Tiled Gallery template.
4 4 *
5 + * @html-template Jetpack_Tiled_Gallery_Layout::template
5 6 * @package automattic/jetpack
6 7 */
7 8
8 -foreach ( $context['rows'] as $row ) : // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable
9 +if ( ! defined( 'ABSPATH' ) ) {
10 + exit( 0 );
11 +}
12 +
13 +// phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable -- HTML template, let Phan handle it.
14 +
15 +foreach ( $context['rows'] as $row ) :
9 16 ?>
10 17 <div class="gallery-row"
11 18 style="width: <?php echo esc_attr( $row->width ); ?>px; height: <?php echo esc_attr( $row->height ); ?>px;"
12 19 data-original-width="<?php echo esc_attr( $row->width ); ?>"
@@ -18,13 +25,13 @@
18 25 data-original-width="<?php echo esc_attr( $row->group_size ); ?>"
19 26 data-original-height="<?php echo esc_attr( $row->group_size ); ?>"
20 27 >
21 28 <?php
22 - $this->partial( // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable
29 + $this->partial(
23 30 'item',
24 31 array(
25 32 'item' => $item,
26 - 'link' => $context['link'], // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UndefinedVariable
33 + 'link' => $context['link'],
27 34 )
28 35 );
29 36 ?>
30 37 </div>