Fix shortcode-generated row limits
This commit is contained in:
@@ -44,7 +44,7 @@ if ( isset( $columns ) )
|
||||
<?php
|
||||
$i = 0;
|
||||
|
||||
if ( is_int( $number ) && $number > 0 )
|
||||
if ( intval( $number ) > 0 )
|
||||
$limit = $number;
|
||||
|
||||
foreach ( $data as $event ):
|
||||
|
||||
Reference in New Issue
Block a user