[wp-trac] [WordPress Trac] #49938: Deprecate wp_unregister_GLOBALS()

WordPress Trac noreply at wordpress.org
Fri Apr 17 20:59:41 UTC 2020


#49938: Deprecate wp_unregister_GLOBALS()
----------------------------+-----------------------------
 Reporter:  desrosj         |      Owner:  (none)
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Bootstrap/Load  |    Version:
 Severity:  normal          |   Keywords:  2nd-opinion
  Focuses:                  |
----------------------------+-----------------------------
 `register_globals` was [https://www.php.net/manual/en/security.globals.php
 deprecated in PHP 5.3.0 and removed in 5.4.0]. Since Core now supports PHP
 >= 5.6.20, this can probably be deprecated.

 The first line of `wp_unregister_GLOBALS()` checks `if ( ! ini_get(
 'register_globals' ) )` and returns early. `ini_get()` returns `false` if
 the option is not set, so this function is probably dead code.

 Follow up ticket to #46152, #49922.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/49938>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list