Make WordPress Core


Ignore:
Timestamp:
03/23/2011 06:40:52 PM (14 years ago)
Author:
nacin
Message:

Avoid functions.php from ever being treated as a page template. fixes #16689.

File:
1 edited

Legend:

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

    r17264 r17539  
    180180            // don't allow template files in subdirectories
    181181            if ( false !== strpos($basename, '/') )
     182                continue;
     183
     184            if ( 'functions.php' == $basename )
    182185                continue;
    183186
Note: See TracChangeset for help on using the changeset viewer.