[wp-trac] [WordPress Trac] #48605: add_magic_quotes() inappropriately recasts data types

WordPress Trac noreply at wordpress.org
Tue Feb 25 18:31:47 UTC 2020


#48605: add_magic_quotes() inappropriately recasts data types
----------------------------+-----------------------------
 Reporter:  Veraxus         |       Owner:  SergeyBiryukov
     Type:  defect (bug)    |      Status:  reviewing
 Priority:  normal          |   Milestone:  5.4
Component:  Bootstrap/Load  |     Version:  trunk
 Severity:  major           |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+-----------------------------

Comment (by SergeyBiryukov):

 In [changeset:"47370" 47370]:
 {{{
 #!CommitTicketReference repository="" revision="47370"
 Bootstrap/Load: In `wp_magic_quotes()`, revert the type change to string
 for `REQUEST_TIME` and `REQUEST_TIME_FLOAT` values, which should retain
 their proper type.

 Among other things, this preserves compatibility of WP with PHPUnit Code
 Coverage generation.

 Props jrf, Veraxus, Rarst.
 See #48605.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48605#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list