WordPress.org

Make WordPress Core

Changeset 18322


Ignore:
Timestamp:
06/20/2011 03:07:24 AM (7 years ago)
Author:
dd32
Message:

Twenty Eleven trumps it's pretenders. Fixes #17841

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/theme.php

    r18268 r18322  
    397397        // a new theme directory and the theme header is not updated.  Whichever
    398398        // theme is first keeps the name.  Subsequent themes get a suffix applied.
    399         // The Twenty Ten, Default and Classic themes always trump their pretenders.
     399        // The Twenty Eleven, Twenty Ten, Default and Classic themes always trump
     400        // their pretenders.
    400401        if ( isset($wp_themes[$name]) ) {
    401402            $trump_cards = array(
    402                 'classic'   => 'WordPress Classic',
    403                 'default'   => 'WordPress Default',
    404                 'twentyten' => 'Twenty Ten',
     403                'classic'      => 'WordPress Classic',
     404                'default'      => 'WordPress Default',
     405                'twentyten'    => 'Twenty Ten',
     406                'twentyeleven' => 'Twenty Eleven',
    405407            );
    406408            if ( isset( $trump_cards[ $stylesheet ] ) && $name == $trump_cards[ $stylesheet ] ) {
Note: See TracChangeset for help on using the changeset viewer.