Fix shortcode-generated row limits
This commit is contained in:
@@ -44,7 +44,7 @@ if ( isset( $columns ) )
|
|||||||
<?php
|
<?php
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|
||||||
if ( is_int( $number ) && $number > 0 )
|
if ( intval( $number ) > 0 )
|
||||||
$limit = $number;
|
$limit = $number;
|
||||||
|
|
||||||
foreach ( $data as $event ):
|
foreach ( $data as $event ):
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ endif;
|
|||||||
<?php
|
<?php
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|
||||||
if ( is_int( $number ) && $number > 0 )
|
if ( is_numeric( $number ) && $number > 0 )
|
||||||
$limit = $number;
|
$limit = $number;
|
||||||
|
|
||||||
foreach ( $data as $event ):
|
foreach ( $data as $event ):
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ $output .= '</tr>' . '</thead>' . '<tbody>';
|
|||||||
|
|
||||||
$i = 0;
|
$i = 0;
|
||||||
|
|
||||||
if ( is_numeric( $number ) && $number > 0 )
|
if ( intval( $number ) > 0 )
|
||||||
$limit = $number;
|
$limit = $number;
|
||||||
|
|
||||||
foreach( $data as $team_id => $row ):
|
foreach( $data as $team_id => $row ):
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ $size_class = sanitize_html_class( $size );
|
|||||||
$gallery_div = "<div id='$selector' class='gallery galleryid-{$id} gallery-columns-{$columns} gallery-size-{$size_class}'>";
|
$gallery_div = "<div id='$selector' class='gallery galleryid-{$id} gallery-columns-{$columns} gallery-size-{$size_class}'>";
|
||||||
echo apply_filters( 'gallery_style', $gallery_style . "\n\t\t" . $gallery_div );
|
echo apply_filters( 'gallery_style', $gallery_style . "\n\t\t" . $gallery_div );
|
||||||
|
|
||||||
if ( is_int( $number ) && $number > 0 )
|
if ( intval( $number ) > 0 )
|
||||||
$limit = $number;
|
$limit = $number;
|
||||||
|
|
||||||
if ( $grouping === 'position' ):
|
if ( $grouping === 'position' ):
|
||||||
|
|||||||
Reference in New Issue
Block a user