Make WordPress Core

Changeset 2818


Ignore:
Timestamp:
08/29/2005 11:40:32 PM (19 years ago)
Author:
ryan
Message:

Better support for theme plugins. add_theme_page() and active theme functions.php autoloader.

Location:
trunk
Files:
2 edited

Legend:

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

    r2815 r2818  
    11451145}
    11461146
     1147function add_theme_page($page_title, $menu_title, $access_level, $file, $function = '') {
     1148        return add_submenu_page('themes.php', $page_title, $menu_title, $access_level, $file, $function);
     1149}
     1150
     1151
    11471152function validate_file($file, $allowed_files = '') {
    11481153    if ( false !== strpos($file, './'))
  • trunk/wp-settings.php

    r2800 r2818  
    190190require_once(ABSPATH . WPINC . '/locale.php');
    191191
     192// Load functions for active theme.
     193if ( file_exists(TEMPLATEPATH . "/functions.php") )
     194    include(TEMPLATEPATH . "/functions.php");
     195
    192196function shutdown_action_hook() {
    193197    do_action('shutdown');
Note: See TracChangeset for help on using the changeset viewer.