Make WordPress Core


Ignore:
Timestamp:
11/25/2015 09:44:02 PM (9 years ago)
Author:
wonderboymusic
Message:

Upgrade: New themes are not automatically installed on upgrade. This can still be explicitly asked for by defining CORE_UPGRADE_SKIP_NEW_BUNDLED as false.

In populate_options(), if the theme specified by WP_DEFAULT_THEME doesn't exist, fall back to the latest core default theme. If we can't find a core default theme, WP_DEFAULT_THEME is the best we can do.

Props nacin, jeremyfelt, dd32.
See #34306.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/default-constants.php

    r35290 r35738  
    349349     * Slug of the default theme for this install.
    350350     * Used as the default theme when installing new sites.
    351      * Will be used as the fallback if the current theme doesn't exist.
     351     * It will be used as the fallback if the current theme doesn't exist.
     352     *
    352353     * @since 3.0.0
     354     * @see WP_Theme::get_core_default_theme()
    353355     */
    354356    if ( !defined('WP_DEFAULT_THEME') )
Note: See TracChangeset for help on using the changeset viewer.