In the style of #30947 and default-filters.php, add 2 new files to wp-admin/includes:

`admin-filters.php`
`ms-admin-filters.php`

There are random actions and filters littered among files like `misc.php`. These files contain functions that won't work outside of admin context and are typically only loaded in files that have already loaded the admin bootstrap.

See #32529.


git-svn-id: https://develop.svn.wordpress.org/trunk@32653 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Scott Taylor
2015-05-29 17:03:13 +00:00
parent d5e9f8770a
commit d55800a4f2
18 changed files with 141 additions and 91 deletions

View File

@@ -132,7 +132,6 @@ function install_themes_dashboard() {
</form>
<?php
}
// add_action('install_themes_dashboard', 'install_themes_dashboard');
function install_themes_upload() {
?>
@@ -144,7 +143,6 @@ function install_themes_upload() {
</form>
<?php
}
// add_action('install_themes_upload', 'install_themes_upload', 10, 0);
/**
* Prints a theme on the Install Themes pages.
@@ -180,10 +178,6 @@ function display_themes() {
$wp_list_table->display();
}
// add_action('install_themes_search', 'display_themes');
// add_action('install_themes_featured', 'display_themes');
// add_action('install_themes_new', 'display_themes');
// add_action('install_themes_updated', 'display_themes');
/**
* Display theme information in dialog box form.
@@ -208,4 +202,3 @@ function install_theme_information() {
iframe_footer();
exit;
}
add_action('install_themes_pre_theme-information', 'install_theme_information');