Make WordPress Core


Ignore:
Timestamp:
02/13/2021 03:15:00 PM (4 years ago)
Author:
ocean90
Message:

Docs: Improve parameter types for various URL functions and filters that also accept null.

See #51800.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api.php

    r50234 r50340  
    386386 * @global WP_Rewrite $wp_rewrite WordPress rewrite component.
    387387 *
    388  * @param int    $blog_id Optional. Blog ID. Default of null returns URL for current blog.
    389  * @param string $path    Optional. REST route. Default '/'.
    390  * @param string $scheme  Optional. Sanitization scheme. Default 'rest'.
     388 * @param int|null $blog_id Optional. Blog ID. Default of null returns URL for current blog.
     389 * @param string   $path    Optional. REST route. Default '/'.
     390 * @param string   $scheme  Optional. Sanitization scheme. Default 'rest'.
    391391 * @return string Full URL to the endpoint.
    392392 */
     
    442442     * @since 4.4.0
    443443     *
    444      * @param string $url     REST URL.
    445      * @param string $path    REST route.
    446      * @param int    $blog_id Blog ID.
    447      * @param string $scheme  Sanitization scheme.
     444     * @param string   $url     REST URL.
     445     * @param string   $path    REST route.
     446     * @param int|null $blog_id Blog ID.
     447     * @param string   $scheme  Sanitization scheme.
    448448     */
    449449    return apply_filters( 'rest_url', $url, $path, $blog_id, $scheme );
Note: See TracChangeset for help on using the changeset viewer.