Make WordPress Core

Ticket #42108: 42108.2.diff

File 42108.2.diff, 1.1 KB (added by audrasjb, 6 years ago)

Update @since to 5.0.3

  • src/wp-includes/pluggable.php

    diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php
    index d46a410..7cf7365 100644
    a b if ( ! function_exists( 'wp_safe_redirect' ) ) : 
    13311331         *     }
    13321332         *
    13331333         * @since 2.3.0
    1334          * @since 5.0.0 The return value from wp_redirect() is now passed on, and the `$x_redirect_by` parameter was added.
     1334         * @since 5.0.3 Added passing the return from wp_redirect on.
    13351335         *
    13361336         * @param string $location      The path or URL to redirect to.
    13371337         * @param int    $status        Optional. HTTP response status code to use. Default '302' (Moved Temporarily).
    if ( ! function_exists( 'wp_safe_redirect' ) ) : 
    13501350                 *
    13511351                 * @param string $fallback_url The fallback URL to use by default.
    13521352                 * @param int    $status       The HTTP response status code to use.
     1353                 * @return bool  $redirect False if the redirect was cancelled, true otherwise.
    13531354                 */
    13541355                $location = wp_validate_redirect( $location, apply_filters( 'wp_safe_redirect_fallback', admin_url(), $status ) );
    13551356