[wp-trac] [WordPress Trac] #46313: WordPress 5.1 and $themes backward compatibility break-ish

WordPress Trac noreply at wordpress.org
Fri Feb 22 13:51:05 UTC 2019


#46313: WordPress 5.1 and $themes backward compatibility break-ish
--------------------------+----------------------
 Reporter:  flexithemes   |       Owner:  (none)
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:
Component:  Themes        |     Version:  5.1
 Severity:  normal        |  Resolution:  wontfix
 Keywords:                |     Focuses:
--------------------------+----------------------
Changes (by earnjam):

 * status:  new => closed
 * resolution:   => wontfix
 * severity:  critical => normal
 * milestone:  Awaiting Review =>


Comment:

 Actually, now that I look into it, you should probably just be using a PHP
 namespace, or some kind of variable prefix if you are going to use
 globals.

 I don't think that global is actually used anywhere in core except in a
 very specific circumstance in `/wp-includes/template-loader.php`.

 I'm going to close as wontfix, as core cannot account for every
 theme/plugin's use of vaguely named global variables.

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


More information about the wp-trac mailing list