We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents fc40b40 + 928ef06 commit b401693Copy full SHA for b401693
lib/metabox/init.php
@@ -758,7 +758,7 @@ public static function set_mb_type( $meta_box ) {
758
if ( is_string( $meta_box['pages'] ) )
759
$type = $meta_box['pages'];
760
// if it's an array of one, extract it
761
- elseif ( is_array( $meta_box['pages'] ) && count( $meta_box['pages'] === 1 ) )
+ elseif ( is_array( $meta_box['pages'] ) && count( $meta_box['pages'] ) === 1 )
762
$type = is_string( end( $meta_box['pages'] ) ) ? end( $meta_box['pages'] ) : false;
763
764
if ( !$type )
0 commit comments