Make WordPress Core


Ignore:
Timestamp:
10/29/2014 07:50:31 PM (12 years ago)
Author:
boonebgorges
Message:

Support an empty string passed as a status in WP_Comment_Query.

The changes in [30084] broke backward compatibility with interfaces that
manually passed an empty string for the value of 'status', such as on
wp-admin/edit-comments.php.

Fixes #29612.

File:
1 edited

Legend:

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

    r30084 r30093  
    356356        }
    357357
    358         // Remove empty statuses.
    359         $statuses = array_filter( $statuses );
    360 
    361358        // 'any' overrides other statuses.
    362359        if ( ! in_array( 'any', $statuses ) ) {
     
    372369
    373370                    case 'all' :
     371                    case '' :
    374372                        $status_clauses[] = "( comment_approved = '0' OR comment_approved = '1' )";
    375373                        break;
Note: See TracChangeset for help on using the changeset viewer.