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

Built from https://develop.svn.wordpress.org/trunk@25446


git-svn-id: http://core.svn.wordpress.org/trunk@25367 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2013-09-14 23:10:10 +00:00
parent efdaf1e915
commit 1f507db1c0

View File

@ -2041,7 +2041,7 @@ function wp_get_sites( $args = array() ) {
$query .= $wpdb->prepare( "AND public = %d ", $args['public'] );
if ( isset( $args['archived'] ) )
$query .= $wpdb->prepare( "AND archived = %d ", $args['archived'] );
$query .= $wpdb->prepare( "AND archived = %s ", (int) $args['archived'] ); // ENUM field
if ( isset( $args['mature'] ) )
$query .= $wpdb->prepare( "AND mature = %d ", $args['mature'] );