Skip to content

Commit

Permalink
Merge pull request #4 from OssianEriksson/master
Browse files Browse the repository at this point in the history
Fixed typo generating warnings
  • Loading branch information
Eric Carlsson committed Jan 29, 2021
2 parents fc40b40 + 928ef06 commit b401693
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/metabox/init.php
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ public static function set_mb_type( $meta_box ) {
if ( 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 )
Expand Down

0 comments on commit b401693

Please sign in to comment.