Add admin_init action. fixes #5924

git-svn-id: http://svn.automattic.com/wordpress/trunk@6915 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-02-19 20:24:50 +00:00
parent b04d17f011
commit 3992509821
1 changed files with 2 additions and 0 deletions

View File

@ -38,6 +38,8 @@ if (isset($_GET['page'])) {
require(ABSPATH . 'wp-admin/menu.php'); require(ABSPATH . 'wp-admin/menu.php');
do_action('admin_init');
// Handle plugin admin pages. // Handle plugin admin pages.
if (isset($plugin_page)) { if (isset($plugin_page)) {
$page_hook = get_plugin_page_hook($plugin_page, $pagenow); $page_hook = get_plugin_page_hook($plugin_page, $pagenow);