Make WordPress Core


Ignore:
Timestamp:
09/14/2013 11:09:59 PM (8 years ago)
Author:
nacin
Message:

Proper treatment of the 'archived' field in wp_get_sites(). see #14511.

File:
1 edited

Legend:

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

    r25445 r25446  
    20422042
    20432043    if ( isset( $args['archived'] ) )
    2044         $query .= $wpdb->prepare( "AND archived = %d ", $args['archived'] );
     2044        $query .= $wpdb->prepare( "AND archived = %s ", (int) $args['archived'] ); // ENUM field
    20452045
    20462046    if ( isset( $args['mature'] ) )
Note: See TracChangeset for help on using the changeset viewer.