Make WordPress Core

Changeset 48206


Ignore:
Timestamp:
06/28/2020 09:07:36 PM (5 years ago)
Author:
SergeyBiryukov
Message:

Bootstrap/Load: Remove special handling for REQUEST_TIME and REQUEST_TIME_FLOAT server values in wp_magic_quotes().

This was intended as a temporary fix until add_magic_quotes() is modified to leave non-string values untouched, which has now been done.

Follow-up to [47370], [48205].

See #48605.

File:
1 edited

Legend:

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

    r48188 r48206  
    10091009    $_SERVER = add_magic_quotes( $_SERVER );
    10101010
    1011     /*
    1012      * Revert the type change to string for two indexes which should retain their proper type.
    1013      * Among other things, this preserves compatibility of WP with PHPUnit Code Coverage generation.
    1014      */
    1015     if ( isset( $_SERVER['REQUEST_TIME'] ) ) {
    1016         $_SERVER['REQUEST_TIME'] = (int) $_SERVER['REQUEST_TIME'];
    1017     }
    1018 
    1019     if ( isset( $_SERVER['REQUEST_TIME_FLOAT'] ) ) {
    1020         $_SERVER['REQUEST_TIME_FLOAT'] = (float) $_SERVER['REQUEST_TIME_FLOAT'];
    1021     }
    1022 
    10231011    // Force REQUEST to be GET + POST.
    10241012    $_REQUEST = array_merge( $_GET, $_POST );
Note: See TracChangeset for help on using the changeset viewer.