Changeset 42633 for trunk/src/wp-includes/pluggable.php
- Timestamp:
- 02/01/2018 03:05:50 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/pluggable.php
r42409 r42633 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 … … 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" );
Note: See TracChangeset
for help on using the changeset viewer.