mirror of
https://github.com/WordPress/WordPress.git
synced 2024-06-26 06:45:07 +02:00
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:
parent
efdaf1e915
commit
1f507db1c0
|
@ -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'] );
|
||||
|
|
Loading…
Reference in New Issue
Block a user