Ticket #42299: 42299.diff
| File 42299.diff, 727 bytes (added by , 8 years ago) |
|---|
-
src/wp-includes/ms-load.php
226 226 } 227 227 228 228 $args = array( 229 'domain__in' => $domains,230 'path__in' => $paths,231 229 'number' => 1, 232 230 ); 233 231 234 232 if ( count( $domains ) > 1 ) { 233 $args['domain__in'] = $domains; 235 234 $args['orderby']['domain_length'] = 'DESC'; 235 } else { 236 $args['domain'] = array_shift( $domains ); 236 237 } 237 238 238 239 if ( count( $paths ) > 1 ) { 240 $args['path__in'] = $paths; 239 241 $args['orderby']['path_length'] = 'DESC'; 242 } else { 243 $args['path'] = array_shift( $paths ); 240 244 } 241 245 242 246 $result = get_sites( $args );