Make WordPress Core

Changeset 27381


Ignore:
Timestamp:
03/03/2014 06:55:08 PM (10 years ago)
Author:
nacin
Message:

Doc fixes for wp_get_network().

props TobiasBg.
see #27003.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-load.php

    r27359 r27381  
    281281 * @since 3.9.0
    282282 *
    283  * @param int $network_id The network's DB row or ID.
    284  * @return mixed Object containing network information if found, false if not.
     283 * @param object|int $network The network's DB row or ID.
     284 * @return object|bool Object containing network information if found, false if not.
    285285 */
    286286function wp_get_network( $network ) {
     
    316316    global $wpdb;
    317317
    318     $path_segments = array_filter( explode( '/', trim( $path, "/" ) ) );
     318    $path_segments = array_filter( explode( '/', trim( $path, '/' ) ) );
    319319
    320320    /**
     
    323323     * @since 3.9.0
    324324     *
    325 
    326325     * @param mixed  $segments The number of path segments to consider. WordPress by default looks at
    327326     *                         one path segment following the network path. The function default of
     
    332331    $segments = apply_filters( 'site_by_path_segments_count', $segments, $domain, $path );
    333332
    334     if ( null !== $segments && count($path_segments ) > $segments ) {
     333    if ( null !== $segments && count( $path_segments ) > $segments ) {
    335334        $path_segments = array_slice( $path_segments, 0, $segments );
    336335    }
Note: See TracChangeset for help on using the changeset viewer.