is_* WP_Query methods. Props mdawaffe. fixes #14494

git-svn-id: http://svn.automattic.com/wordpress/trunk@15531 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2010-08-25 18:05:33 +00:00
parent ab4fc9bba9
commit 6ff179a805
2 changed files with 626 additions and 237 deletions

View File

@ -2535,3 +2535,24 @@ function is_term( $term, $taxonomy = '', $parent = 0 ) {
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