mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Return hook as null instead of empty string. Props DD32. fixes #4639
git-svn-id: https://develop.svn.wordpress.org/trunk@5803 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user