Make WordPress Core

Changeset 41596


Ignore:
Timestamp:
09/26/2017 12:11:56 AM (8 years ago)
Author:
flixos90
Message:

Multisite: Fix documentation issues for domain_exists().

Props stevenlinx.
Fixes #41619.

File:
1 edited

Legend:

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

    r41552 r41596  
    13421342
    13431343/**
    1344  * Check whether a blogname is already taken.
     1344 * Checks whether a site name is already taken.
     1345 *
     1346 * The name is the site's subdomain or the site's subdirectory
     1347 * path depending on the network settings.
    13451348 *
    13461349 * Used during the new site registration process to ensure
    1347  * that each blogname is unique.
    1348  *
    1349  * @since MU (3.0.0)
    1350  *
    1351  * @global wpdb $wpdb WordPress database abstraction object.
     1350 * that each site name is unique.
     1351 *
     1352 * @since MU (3.0.0)
    13521353 *
    13531354 * @param string $domain     The domain to be checked.
    13541355 * @param string $path       The path to be checked.
    13551356 * @param int    $network_id Optional. Network ID. Relevant only on multi-network installations.
    1356  * @return int
     1357 * @return int|null The site ID if the site name exists, null otherwise.
    13571358 */
    13581359function domain_exists( $domain, $path, $network_id = 1 ) {
     
    13681369
    13691370    /**
    1370      * Filters whether a blogname is taken.
     1371     * Filters whether a site name is taken.
     1372     *
     1373     * The name is the site's subdomain or the site's subdirectory
     1374     * path depending on the network settings.
    13711375     *
    13721376     * @since 3.5.0
    13731377     *
    1374      * @param int|null $result     The blog_id if the blogname exists, null otherwise.
     1378     * @param int|null $result     The site ID if the site name exists, null otherwise.
    13751379     * @param string   $domain     Domain to be checked.
    13761380     * @param string   $path       Path to be checked.
Note: See TracChangeset for help on using the changeset viewer.