diff --git a/wp-includes/canonical.php b/wp-includes/canonical.php index 2d776e8707..6f9e3f9204 100644 --- a/wp-includes/canonical.php +++ b/wp-includes/canonical.php @@ -835,7 +835,7 @@ function strip_fragment_from_url( $url ) { } /** - * Attempts to guess the correct URL based on query vars. + * Attempts to guess the correct URL for a 404 request based on query vars. * * @since 2.3.0 * @@ -847,22 +847,22 @@ function redirect_guess_404_permalink() { global $wpdb; /** - * Filters whether to do redirect guess of 404 requests. + * Filters whether to attempt to guess a redirect URL for a 404 request. * * Passing a false value to the filter will disable the URL guessing * and return early. * * @since 5.5.0 * - * @param bool $do_redirect_guess Whether to do redirect guess 404 permalink. - * Default true. + * @param bool $do_redirect_guess Whether to attempt to guess a redirect URL + * for a 404 request. Default is true. */ if ( false === apply_filters( 'do_redirect_guess_404_permalink', true ) ) { return false; } /** - * Filters whether to short-circuit redirect guess of 404 requests. + * Filters whether to short-circuit redirect URL guessing for 404 requests. * * Passing a non-null value to the filter will effectively short-circuit * the URL guessing, returning the passed value instead. @@ -878,15 +878,14 @@ function redirect_guess_404_permalink() { } if ( get_query_var( 'name' ) ) { - /** - * Filters whether to do a strict or loose guess. + * Filters whether to perform a strict or loose guess. * * Passing a truthy value to the filter will redirect only exact post_name matches. * * @since 5.5.0 * - * @param bool $strict_guess Whether to do a strict/exact guess. Default false. + * @param bool $strict_guess Whether to perform a strict/exact guess. Default false (loose guess). */ $strict_guess = apply_filters( 'strict_redirect_guess_404_permalink', false ); diff --git a/wp-includes/version.php b/wp-includes/version.php index 9e93fe6869..cec9fe7f3c 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-alpha-48181'; +$wp_version = '5.5-alpha-48182'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.