Make WordPress Core

Changeset 42409


Ignore:
Timestamp:
12/18/2017 01:10:36 AM (7 years ago)
Author:
SergeyBiryukov
Message:

Canonical: After [42408], remove sprintf() call for consistency with Location header.

See #42313.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/pluggable.php

    r42408 r42409  
    12401240        $x_redirect_by = apply_filters( 'x_redirect_by', 'WordPress', $status, $location );
    12411241        if ( is_string( $x_redirect_by ) ) {
    1242             header( sprintf( "X-Redirect-By: %s", $x_redirect_by ) );
     1242            header( "X-Redirect-By: $x_redirect_by" );
    12431243        }
    12441244
Note: See TracChangeset for help on using the changeset viewer.