Skip to content

remove_action #20

@serumax

Description

@serumax

Hello
You may add to line to this method to remove action, because there is a bug when you switch_to_blog and you do a new WP_Query

function remove_filters() {
remove_filter('posts_request', array(&$this, 'create_and_unionize_select_statements') );
remove_filter('posts_fields', array(&$this, 'add_site_ID_to_posts_fields') );
remove_action( 'the_post', array( &$this, 'switch_to_blog_while_in_loop' ) );
remove_action( 'loop_end', array( &$this, 'restore_current_blog_after_loop' ) );

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions