Changeset 47885 for trunk/src/wp-includes/canonical.php
- Timestamp:
- 06/02/2020 04:21:49 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/canonical.php
r47878 r47885 825 825 826 826 /** 827 * Attempts to guess the correct URL based on query vars 827 * Attempts to guess the correct URL based on query vars. 828 828 * 829 829 * @since 2.3.0 … … 839 839 * Filters whether to do redirect guess of 404 requests. 840 840 * 841 * Returning a false value from the filter will disable redirect guess 404 permalink.841 * Passing a false value to the filter will disable the URL guessing 842 842 * and return early. 843 843 * 844 844 * @since 5.5.0 845 845 * 846 * @param bool $do_redirect_guess Whether to do redirect guess 404 permalink. Default true. 846 * @param bool $do_redirect_guess Whether to do redirect guess 404 permalink. 847 * Default true. 847 848 */ 848 849 if ( false === apply_filters( 'do_redirect_guess_404_permalink', true ) ) { … … 853 854 * Filters whether to short-circuit redirect guess of 404 requests. 854 855 * 855 * Return a non-false value from the filter will short-circuit the handling and return early. 856 * Passing a non-null value to the filter will effectively short-circuit 857 * the URL guessing, returning the passed value instead. 856 858 * 857 859 * @since 5.5.0 858 860 * 859 * @param bool $pre Whether to short-circuit redirect guess 404 permalink. Default null. 861 * @param null|string $pre Whether to short-circuit redirect guess 404 permalink. 862 * Default null to continue with the URL guessing. 860 863 */ 861 864 $pre = apply_filters( 'pre_redirect_guess_404_permalink', null ); … … 869 872 * Filters whether to do a strict or loose guess. 870 873 * 871 * Returning true value from the filter will guessredirect only exact post_name matches.874 * Passing a truthy value to the filter will redirect only exact post_name matches. 872 875 * 873 876 * @since 5.5.0 874 877 * 875 * @param bool $strict_guessWhether to do a strict/exact guess. Default false.878 * @param bool $strict_guess Whether to do a strict/exact guess. Default false. 876 879 */ 877 880 $strict_guess = apply_filters( 'strict_redirect_guess_404_permalink', false );
Note: See TracChangeset
for help on using the changeset viewer.