WordPress.org

Make WordPress Core


Ignore:
Timestamp:
01/03/2021 10:02:13 PM (11 months ago)
Author:
johnbillion
Message:

Docs: Promote many bool types to true or false where only that value is used.

See #51800

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-network.php

    r47122 r49927  
    9090     *
    9191     * @param int $network_id The ID of the network to retrieve.
    92      * @return WP_Network|bool The network's object if found. False if not.
     92     * @return WP_Network|false The network's object if found. False if not.
    9393     */
    9494    public static function get_instance( $network_id ) {
     
    327327     * @param string   $path     Path to check.
    328328     * @param int|null $segments Path segments to use. Defaults to null, or the full path.
    329      * @return WP_Network|bool Network object if successful. False when no network is found.
     329     * @return WP_Network|false Network object if successful. False when no network is found.
    330330     */
    331331    public static function get_by_path( $domain = '', $path = '', $segments = null ) {
     
    408408         * @since 3.9.0
    409409         *
    410          * @param null|bool|WP_Network $network  Network value to return by path. Default null
     410         * @param null|false|WP_Network $network  Network value to return by path. Default null
    411411         *                                       to continue retrieving the network.
    412412         * @param string               $domain   The requested domain.
Note: See TracChangeset for help on using the changeset viewer.