Changeset 48184 for trunk/src/wp-includes/canonical.php
- Timestamp:
- 06/26/2020 06:38:51 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/canonical.php
r48182 r48184 851 851 * 852 852 * Passing a false value to the filter will disable the URL guessing 853 * and return early .853 * and return early without performing a redirect. 854 854 * 855 855 * @since 5.5.0 … … 863 863 864 864 /** 865 * Filters whether to short-circuitredirect URL guessing for 404 requests.865 * Short-circuits the redirect URL guessing for 404 requests. 866 866 * 867 867 * Passing a non-null value to the filter will effectively short-circuit … … 870 870 * @since 5.5.0 871 871 * 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. 874 874 */ 875 875 $pre = apply_filters( 'pre_redirect_guess_404_permalink', null ); … … 880 880 if ( get_query_var( 'name' ) ) { 881 881 /** 882 * Filters whether to perform a strict or loose guess.882 * Filters whether to perform a strict guess for a 404 redirect. 883 883 * 884 884 * Passing a truthy value to the filter will redirect only exact post_name matches. … … 886 886 * @since 5.5.0 887 887 * 888 * @param bool $strict_guess Whether to perform a strict /exactguess. Default false (loose guess).888 * @param bool $strict_guess Whether to perform a strict guess. Default false (loose guess). 889 889 */ 890 890 $strict_guess = apply_filters( 'strict_redirect_guess_404_permalink', false );
Note: See TracChangeset
for help on using the changeset viewer.