mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-01 15:50:09 +00:00
has_action and has_filter. see #5231
git-svn-id: https://develop.svn.wordpress.org/trunk@6320 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -329,10 +329,8 @@ function get_admin_page_title() {
|
||||
}
|
||||
|
||||
function get_plugin_page_hook( $plugin_page, $parent_page ) {
|
||||
global $wp_filter;
|
||||
|
||||
$hook = get_plugin_page_hookname( $plugin_page, $parent_page );
|
||||
if ( isset( $wp_filter[$hook] ))
|
||||
if ( has_action($hook) )
|
||||
return $hook;
|
||||
else
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user