mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 16:21:26 +01:00
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
This commit is contained in:
parent
4078e14d1e
commit
e370ae439d
@ -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)) )
|
||||
|
Loading…
Reference in New Issue
Block a user