From 1f507db1c00b5224cc83e9403712ebef2c1a4d52 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Sat, 14 Sep 2013 23:10:10 +0000 Subject: [PATCH] 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 --- wp-includes/ms-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index ec77ec4951..3cf7f0b09f 100644 --- a/wp-includes/ms-functions.php +++ b/wp-includes/ms-functions.php @@ -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'] );