Better support for theme plugins. add_theme_page() and active theme functions.php autoloader.
git-svn-id: http://svn.automattic.com/wordpress/trunk@2818 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -1144,6 +1144,11 @@ function add_management_page($page_title, $menu_title, $access_level, $file, $fu
|
||||
return add_submenu_page('edit.php', $page_title, $menu_title, $access_level, $file, $function);
|
||||
}
|
||||
|
||||
function add_theme_page($page_title, $menu_title, $access_level, $file, $function = '') {
|
||||
return add_submenu_page('themes.php', $page_title, $menu_title, $access_level, $file, $function);
|
||||
}
|
||||
|
||||
|
||||
function validate_file($file, $allowed_files = '') {
|
||||
if ( false !== strpos($file, './'))
|
||||
return 1;
|
||||
@@ -1393,4 +1398,4 @@ function get_importers() {
|
||||
return $wp_importers;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user