diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index c46e4b4cb1..0ec664b065 100644 --- a/wp-includes/ms-functions.php +++ b/wp-includes/ms-functions.php @@ -2042,7 +2042,7 @@ function wp_get_sites( $args = array() ) { $query .= $wpdb->prepare( "AND public = %d ", $args['public'] ); if ( isset( $args['archived'] ) ) - $query .= $wpdb->prepare( "AND archived = %s ", (int) $args['archived'] ); // ENUM field + $query .= $wpdb->prepare( "AND archived = %d ", $args['archived'] ); if ( isset( $args['mature'] ) ) $query .= $wpdb->prepare( "AND mature = %d ", $args['mature'] );