diff --git a/init.php b/init.php index 742ca5f..497b513 100644 --- a/init.php +++ b/init.php @@ -743,7 +743,7 @@ public static function set_mb_type( $meta_box ) { elseif ( is_string( $meta_box['pages'] ) ) $type = $meta_box['pages']; // if it's an array of one, extract it - elseif ( is_array( $meta_box['pages'] ) && count( $meta_box['pages'] === 1 ) ) + elseif ( is_array( $meta_box['pages'] ) && count( $meta_box['pages'] ) === 1 ) $type = is_string( end( $meta_box['pages'] ) ) ? end( $meta_box['pages'] ) : false; if ( !$type )