WordPress.org

Make WordPress Core

Changeset 3459


Ignore:
Timestamp:
01/18/2006 07:38:29 PM (15 years ago)
Author:
ryan
Message:

Fall back to default theme if current theme is deleted. Props David House. fixes #2305

File:
1 edited

Legend:

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

    r3445 r3459  
    16821682
    16831683function get_template() {
     1684    $template = get_settings('template');
     1685    if (!file_exists(get_theme_root() . "/$template")) { //works for dirs too
     1686        update_option('template', 'default');
     1687        update_option('stylesheet', 'default');
     1688    }
    16841689    return apply_filters('template', get_settings('template'));
    16851690}
Note: See TracChangeset for help on using the changeset viewer.