WordPress.org

Make WordPress Core


Ignore:
Timestamp:
10/01/2012 02:25:31 PM (8 years ago)
Author:
ryan
Message:

Reinit roles and the current user after switching the cache to the new blog in switch_to_blog() and restore_current_blog(). Props joostdekeijzer. fixes #21459

File:
1 edited

Legend:

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

    r22080 r22087  
    264264        elseif ( 'approve' == $status )
    265265            $approved = "comment_approved = '1'";
     266        elseif ( 'all' == $status )
     267            $approved = "( comment_approved = '0' OR comment_approved = '1' )";
     268        elseif ( 'full' == $status )
     269            $approved = '0 = 0';
    266270        elseif ( ! empty( $status ) )
    267271            $approved = $wpdb->prepare( "comment_approved = %s", $status );
Note: See TracChangeset for help on using the changeset viewer.