WordPress.org

Make WordPress Core

Ticket #42072: 42072.diff

File 42072.diff, 399 bytes (added by danieltj, 4 years ago)

Adds number parameter to limit by 1

  • wp-includes/ms-functions.php

    diff --git wp-includes/ms-functions.php wp-includes/ms-functions.php
    index 20a183d..f89500a 100644
    function domain_exists($domain, $path, $site_id = 1) { 
    13301330                'domain' => $domain,
    13311331                'path' => $path,
    13321332                'fields' => 'ids',
     1333                'number' => 1,
    13331334        );
    13341335        $result = get_sites( $args );
    13351336        $result = array_shift( $result );