Making WordPress.org


Ignore:
Timestamp:
01/29/2016 04:32:36 AM (9 years ago)
Author:
dd32
Message:

Avoid a fatal error with the latest version of the P2 Resolved Posts plugin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/handbook/handbook.php

    r2016 r2417  
    236236     */
    237237    function disable_p2_resolved_posts_action_links() {
    238         if ( ( $this->post_type == get_post_type() ) && class_exists( 'P2_Resolved_Posts' ) && is_object( P2_Resolved_Posts::$instance ) ) {
    239             remove_filter( 'p2_action_links', array( P2_Resolved_Posts::$instance, 'p2_action_links' ), 100 );
     238        if ( ( $this->post_type == get_post_type() ) && class_exists( 'P2_Resolved_Posts' ) && isset( $GLOBALS['p2_resolved_posts'] ) && is_object( $GLOBALS['p2_resolved_posts'] ) ) {
     239            remove_filter( 'p2_action_links', array( P2_Resolved_Posts::instance(), 'p2_action_links' ), 100 );
    240240        }
    241241    }
Note: See TracChangeset for help on using the changeset viewer.