diff --git a/src/wp-includes/pluggable.php b/src/wp-includes/pluggable.php
index 9af88a6..a6075ae 100644
|
a
|
b
|
if ( ! function_exists( 'wp_redirect' ) ) : |
| 1189 | 1189 | * |
| 1190 | 1190 | * @global bool $is_IIS |
| 1191 | 1191 | * |
| 1192 | | * @param string $location The path or URL to redirect to. |
| 1193 | | * @param int $status Optional. HTTP response status code to use. Default '302' (Moved Temporarily). |
| | 1192 | * @param string $location The path or URL to redirect to. |
| | 1193 | * @param int $status Optional. HTTP response status code to use. Default '302' (Moved Temporarily). |
| | 1194 | * @param string $x_redirect_by Optional. The application doing the redirect. Default 'WordPress'. |
| 1194 | 1195 | * @return bool False if the redirect was cancelled, true otherwise. |
| 1195 | 1196 | */ |
| 1196 | | function wp_redirect( $location, $status = 302 ) { |
| | 1197 | function wp_redirect( $location, $status = 302, $x_redirect_by = 'WordPress' ) { |
| 1197 | 1198 | global $is_IIS; |
| 1198 | 1199 | |
| 1199 | 1200 | /** |
| … |
… |
if ( ! function_exists( 'wp_redirect' ) ) : |
| 1237 | 1238 | * @param int $status Status code to use. |
| 1238 | 1239 | * @param string $location The path to redirect to. |
| 1239 | 1240 | */ |
| 1240 | | $x_redirect_by = apply_filters( 'x_redirect_by', 'WordPress', $status, $location ); |
| | 1241 | $x_redirect_by = apply_filters( 'x_redirect_by', $x_redirect_by, $status, $location ); |
| 1241 | 1242 | if ( is_string( $x_redirect_by ) ) { |
| 1242 | 1243 | header( "X-Redirect-By: $x_redirect_by" ); |
| 1243 | 1244 | } |
| … |
… |
if ( ! function_exists( 'wp_text_diff' ) ) : |
| 2712 | 2713 | return $r; |
| 2713 | 2714 | } |
| 2714 | 2715 | endif; |
| 2715 | | |