Make WordPress Core


Ignore:
Timestamp:
06/26/2020 06:38:51 PM (3 years ago)
Author:
johnbillion
Message:

Docs: Miscellaneous docblock improvements.

See #49572.

File:
1 edited

Legend:

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

    r48182 r48184  
    851851     *
    852852     * Passing a false value to the filter will disable the URL guessing
    853      * and return early.
     853     * and return early without performing a redirect.
    854854     *
    855855     * @since 5.5.0
     
    863863
    864864    /**
    865      * Filters whether to short-circuit redirect URL guessing for 404 requests.
     865     * Short-circuits the redirect URL guessing for 404 requests.
    866866     *
    867867     * Passing a non-null value to the filter will effectively short-circuit
     
    870870     * @since 5.5.0
    871871     *
    872      * @param null|string $pre Whether to short-circuit redirect guess 404 permalink.
    873      *                         Default null to continue with the URL guessing.
     872     * @param null|string|false $pre Whether to short-circuit guessing the redirect for a 404.
     873     *                               Default null to continue with the URL guessing.
    874874     */
    875875    $pre = apply_filters( 'pre_redirect_guess_404_permalink', null );
     
    880880    if ( get_query_var( 'name' ) ) {
    881881        /**
    882          * Filters whether to perform a strict or loose guess.
     882         * Filters whether to perform a strict guess for a 404 redirect.
    883883         *
    884884         * Passing a truthy value to the filter will redirect only exact post_name matches.
     
    886886         * @since 5.5.0
    887887         *
    888          * @param bool $strict_guess Whether to perform a strict/exact guess. Default false (loose guess).
     888         * @param bool $strict_guess Whether to perform a strict guess. Default false (loose guess).
    889889         */
    890890        $strict_guess = apply_filters( 'strict_redirect_guess_404_permalink', false );
Note: See TracChangeset for help on using the changeset viewer.