Return hook as null instead of empty string. Props DD32. fixes #4639
git-svn-id: http://svn.automattic.com/wordpress/trunk@5803 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
b6978b2123
commit
05c0d6840b
wp-admin/includes
|
@ -291,7 +291,7 @@ function get_plugin_page_hook( $plugin_page, $parent_page ) {
|
|||
if ( isset( $wp_filter[$hook] ))
|
||||
return $hook;
|
||||
else
|
||||
return '';
|
||||
return null;
|
||||
}
|
||||
|
||||
function get_plugin_page_hookname( $plugin_page, $parent_page ) {
|
||||
|
@ -377,4 +377,4 @@ function user_can_access_admin_page() {
|
|||
return true;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue