mirror of
https://github.com/10h30/display-featured-image-genesis.git
synced 2026-07-20 06:53:23 +09:00
sanitize width
This commit is contained in:
@@ -49,7 +49,7 @@ class Display_Featured_Image_Genesis_Output {
|
||||
$item = Display_Featured_Image_Genesis_Common::get_image_variables();
|
||||
$large = absint( get_option( 'large_size_w' ) );
|
||||
$medium = absint( get_option( 'medium_size_w' ) );
|
||||
$width = $item->backstretch[1];
|
||||
$width = absint( $item->backstretch[1] );
|
||||
|
||||
//* if there is no backstretch image set, or it is too small, die
|
||||
if ( empty( $item->backstretch ) || $width <= $medium || is_paged() ) {
|
||||
@@ -98,7 +98,7 @@ class Display_Featured_Image_Genesis_Output {
|
||||
$item = Display_Featured_Image_Genesis_Common::get_image_variables();
|
||||
$large = absint( get_option( 'large_size_w' ) );
|
||||
$medium = absint( get_option( 'medium_size_w' ) );
|
||||
$width = $item->backstretch[1];
|
||||
$width = absint( $item->backstretch[1] );
|
||||
|
||||
if ( empty( $item->backstretch ) || $width <= $medium ) {
|
||||
return $classes;
|
||||
|
||||
Reference in New Issue
Block a user