Changeset 48182
- Timestamp:
- 06/26/2020 04:14:30 PM (6 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-includes/canonical.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/canonical.php
r48166 r48182 836 836 837 837 /** 838 * Attempts to guess the correct URL based on query vars.838 * Attempts to guess the correct URL for a 404 request based on query vars. 839 839 * 840 840 * @since 2.3.0 … … 848 848 849 849 /** 850 * Filters whether to do redirect guess of 404 requests.850 * Filters whether to attempt to guess a redirect URL for a 404 request. 851 851 * 852 852 * Passing a false value to the filter will disable the URL guessing … … 855 855 * @since 5.5.0 856 856 * 857 * @param bool $do_redirect_guess Whether to do redirect guess 404 permalink.858 * Defaulttrue.857 * @param bool $do_redirect_guess Whether to attempt to guess a redirect URL 858 * for a 404 request. Default is true. 859 859 */ 860 860 if ( false === apply_filters( 'do_redirect_guess_404_permalink', true ) ) { … … 863 863 864 864 /** 865 * Filters whether to short-circuit redirect guess of404 requests.865 * Filters whether to short-circuit redirect URL guessing for 404 requests. 866 866 * 867 867 * Passing a non-null value to the filter will effectively short-circuit … … 879 879 880 880 if ( get_query_var( 'name' ) ) { 881 882 881 /** 883 * Filters whether to doa strict or loose guess.882 * Filters whether to perform a strict or loose guess. 884 883 * 885 884 * Passing a truthy value to the filter will redirect only exact post_name matches. … … 887 886 * @since 5.5.0 888 887 * 889 * @param bool $strict_guess Whether to do a strict/exact guess. Default false.888 * @param bool $strict_guess Whether to perform a strict/exact guess. Default false (loose guess). 890 889 */ 891 890 $strict_guess = apply_filters( 'strict_redirect_guess_404_permalink', false );
Note: See TracChangeset
for help on using the changeset viewer.