From e370ae439d0812419a401f09fc34e7a790b046ae Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 29 Jul 2014 16:02:16 +0000 Subject: [PATCH] Fix duplicate Customize button in theme details modal. props afercia. fixes #28987. Built from https://develop.svn.wordpress.org/trunk@29324 git-svn-id: http://core.svn.wordpress.org/trunk@29105 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/themes.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-admin/themes.php b/wp-admin/themes.php index aca5be72b1..0f44510542 100644 --- a/wp-admin/themes.php +++ b/wp-admin/themes.php @@ -153,7 +153,7 @@ if ( ! $ct->errors() || ( 1 == count( $ct->errors()->get_error_codes() ) if ( is_array( $submenu ) && isset( $submenu['themes.php'] ) ) { foreach ( (array) $submenu['themes.php'] as $item) { $class = ''; - if ( 'themes.php' == $item[2] || 'theme-editor.php' == $item[2] || 'customize.php' == $item[2] ) + if ( 'themes.php' == $item[2] || 'theme-editor.php' == $item[2] || 0 === strpos( $item[2], 'customize.php' ) ) continue; // 0 = name, 1 = capability, 2 = file if ( ( strcmp($self, $item[2]) == 0 && empty($parent_file)) || ($parent_file && ($item[2] == $parent_file)) )