Make WordPress Core

Changeset 29324


Ignore:
Timestamp:
07/29/2014 04:01:13 PM (10 years ago)
Author:
SergeyBiryukov
Message:

Fix duplicate Customize button in theme details modal.

props afercia.
fixes #28987.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/themes.php

    r29217 r29324  
    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] || 0 === strpos( $item[2], 'customize.php' ) )
    157157                continue;
    158158            // 0 = name, 1 = capability, 2 = file
Note: See TracChangeset for help on using the changeset viewer.