Make WordPress Core

Ticket #42073: 42073.diff

File 42073.diff, 394 bytes (added by danieltj, 8 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..07f2ace 100644
    function get_blog_id_from_url( $domain, $path = '/' ) { 
    318318                'domain' => $domain,
    319319                'path' => $path,
    320320                'fields' => 'ids',
     321                'number' => 1,
    321322        );
    322323        $result = get_sites( $args );
    323324        $id = array_shift( $result );