Skip to content

Commit

Permalink
Limit get_by_domain() query to 1, to match sunrise.php look-up.
Browse files Browse the repository at this point in the history
  • Loading branch information
JJJ committed Dec 7, 2016
1 parent 3488783 commit 06d8da7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wp-site-aliases/includes/classes/class-wp-site-alias.php
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,8 @@ public static function get_by_domain( $domains = array() ) {

// Get aliases
$aliases = new WP_Site_Alias_Query( array(
'domain__in' => array_unique( $domains )
'domain__in' => array_unique( (array) $domains ),
'number' => 1
) );

// Bail if no aliases
Expand Down

0 comments on commit 06d8da7

Please sign in to comment.