Skip to content

Commit

Permalink
Remove duplicates from get_by_domain() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
JJJ committed Dec 7, 2016
1 parent d8c66ae commit 3488783
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 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,7 @@ public static function get_by_domain( $domains = array() ) {

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

// Bail if no aliases
Expand Down

0 comments on commit 3488783

Please sign in to comment.