WordPress.org

Make WordPress Core

Ticket #4517: 4517-bundle-sandbox-svn-external.diff

File 4517-bundle-sandbox-svn-external.diff, 1.2 KB (added by Speedboxer, 10 years ago)

Bundle sandbox with svn:externals

  • wp-includes/theme.php

     
    267267                // Check for theme name collision.  This occurs if a theme is copied to
    268268                // a new theme directory and the theme header is not updated.  Whichever
    269269                // theme is first keeps the name.  Subsequent themes get a suffix applied.
    270                 // The Default and Classic themes always trump their pretenders.
     270                // The Default, Classic and Sandbox themes always trump their pretenders.
    271271                if ( isset($themes[$name]) ) {
    272                         if ( ('WordPress Default' == $name || 'WordPress Classic' == $name) &&
    273                                          ('default' == $stylesheet || 'classic' == $stylesheet) ) {
     272                        if ( ('WordPress Default' == $name || 'WordPress Classic' == $name || 'Sandbox' == $name) &&
     273                                         ('default' == $stylesheet || 'classic' == $stylesheet || 'sandbox' == $stylesheet) ) {
    274274                                // If another theme has claimed to be one of our default themes, move
    275275                                // them aside.
    276276                                $suffix = $themes[$name]['Stylesheet'];