WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/25/2010 06:05:33 PM (9 years ago)
Author:
ryan
Message:

is_* WP_Query methods. Props mdawaffe. fixes #14494

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/deprecated.php

    r15515 r15531  
    25362536}
    25372537
     2538/**
     2539 * Is the current admin page generated by a plugin?
     2540 *
     2541 * @since 1.5.0
     2542 * @deprecated 3.1
     2543 * @deprecated Use global $plugin_page and/or get_plugin_page_hookname() hooks.
     2544 *
     2545 * @global $plugin_page
     2546 *
     2547 * @return bool
     2548 */
     2549function is_plugin_page() {
     2550    _deprecated_function( __FUNCTION__, '3.1'  );
     2551
     2552    global $plugin_page;
     2553
     2554    if ( isset($plugin_page) )
     2555        return true;
     2556
     2557    return false;
     2558}
Note: See TracChangeset for help on using the changeset viewer.