is_* WP_Query methods. Props mdawaffe. fixes #14494
git-svn-id: https://develop.svn.wordpress.org/trunk@15531 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
4b4c95799a
commit
a4ce5b114b
@ -2535,3 +2535,24 @@ function is_term( $term, $taxonomy = '', $parent = 0 ) {
|
|||||||
return term_exists( $term, $taxonomy, $parent );
|
return term_exists( $term, $taxonomy, $parent );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Is the current admin page generated by a plugin?
|
||||||
|
*
|
||||||
|
* @since 1.5.0
|
||||||
|
* @deprecated 3.1
|
||||||
|
* @deprecated Use global $plugin_page and/or get_plugin_page_hookname() hooks.
|
||||||
|
*
|
||||||
|
* @global $plugin_page
|
||||||
|
*
|
||||||
|
* @return bool
|
||||||
|
*/
|
||||||
|
function is_plugin_page() {
|
||||||
|
_deprecated_function( __FUNCTION__, '3.1' );
|
||||||
|
|
||||||
|
global $plugin_page;
|
||||||
|
|
||||||
|
if ( isset($plugin_page) )
|
||||||
|
return true;
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user