Make WordPress Core

Ticket #28987: 28987.patch

File 28987.patch, 742 bytes (added by afercia, 10 years ago)
  • src/wp-admin/themes.php

     
    153153        if ( is_array( $submenu ) && isset( $submenu['themes.php'] ) ) {
    154154                foreach ( (array) $submenu['themes.php'] as $item) {
    155155                        $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') )
    157157                                continue;
    158158                        // 0 = name, 1 = capability, 2 = file
    159159                        if ( ( strcmp($self, $item[2]) == 0 && empty($parent_file)) || ($parent_file && ($item[2] == $parent_file)) )