Ticket #28987: 28987.2.patch
File 28987.2.patch, 743 bytes (added by , 10 years ago) |
---|
-
src/wp-admin/themes.php
153 153 if ( is_array( $submenu ) && isset( $submenu['themes.php'] ) ) { 154 154 foreach ( (array) $submenu['themes.php'] as $item) { 155 155 $class = ''; 156 if ( 'themes.php' == $item[2] || 'theme-editor.php' == $item[2] || 'customize.php' == $item[2])156 if ( 'themes.php' == $item[2] || 'theme-editor.php' == $item[2] || false !== strpos( $item[2], 'customize.php' ) ) 157 157 continue; 158 158 // 0 = name, 1 = capability, 2 = file 159 159 if ( ( strcmp($self, $item[2]) == 0 && empty($parent_file)) || ($parent_file && ($item[2] == $parent_file)) )