Make WordPress Core

Changeset 2553


Ignore:
Timestamp:
04/19/2005 09:41:35 PM (20 years ago)
Author:
ryan
Message:

Bail if the theme does not exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/theme-editor.php

    r2448 r2553  
    2727} else {
    2828    $theme = stripslashes($theme);
    29 }
     29 }
     30
     31
     32if ( ! isset($themes[$theme]) )
     33    die(__('The requested theme does not exist.'));
    3034
    3135$allowed_files = array_merge($themes[$theme]['Stylesheet Files'], $themes[$theme]['Template Files']);
Note: See TracChangeset for help on using the changeset viewer.