| | 1216 | /** |
| | 1217 | * Filters the x-redirect-by header, allows applications to identify themselves when they're doing a redirect. |
| | 1218 | * |
| | 1219 | * @since 5.0 |
| | 1220 | * |
| | 1221 | * @param string $x_redirect_by The application doing the redirect. |
| | 1222 | * @param int $status Status code to use. |
| | 1223 | * @param string $location The path to redirect to. |
| | 1224 | */ |
| | 1225 | $x_redirect_by = apply_filters( 'x_redirect_by', 'WordPress', $status, $location ); |
| | 1226 | if ( is_string( $x_redirect_by ) ) { |
| | 1227 | header( sprintf( "X-Redirect-By: %s", $x_redirect_by ) ); |
| | 1228 | } |
| | 1229 | |