From b30dd931fba597d7baf6cf2d91197c880f760328 Mon Sep 17 00:00:00 2001 From: Yannick Warnier Date: Thu, 7 Jun 2018 17:53:28 -0500 Subject: [PATCH] Fix typo generating warnings in set_mb_type() --- init.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 )