mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
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:
@@ -158,7 +158,6 @@ function install_dashboard() {
|
||||
}
|
||||
echo '</p><br class="clear" />';
|
||||
}
|
||||
add_action( 'install_plugins_featured', 'install_dashboard' );
|
||||
|
||||
/**
|
||||
* Display search form for searching plugins.
|
||||
@@ -209,7 +208,6 @@ function install_plugins_upload() {
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
add_action('install_plugins_upload', 'install_plugins_upload' );
|
||||
|
||||
/**
|
||||
* Show a username form for the favorites page
|
||||
@@ -258,12 +256,6 @@ function display_plugins_table() {
|
||||
</form>
|
||||
<?php
|
||||
}
|
||||
add_action( 'install_plugins_search', 'display_plugins_table' );
|
||||
add_action( 'install_plugins_popular', 'display_plugins_table' );
|
||||
add_action( 'install_plugins_recommended', 'display_plugins_table' );
|
||||
add_action( 'install_plugins_new', 'display_plugins_table' );
|
||||
add_action( 'install_plugins_beta', 'display_plugins_table' );
|
||||
add_action( 'install_plugins_favorites', 'display_plugins_table' );
|
||||
|
||||
/**
|
||||
* Determine the status we can perform on a plugin.
|
||||
@@ -582,4 +574,3 @@ function install_plugin_information() {
|
||||
iframe_footer();
|
||||
exit;
|
||||
}
|
||||
add_action('install_plugins_pre_plugin-information', 'install_plugin_information');
|
||||
|
||||
Reference in New Issue
Block a user