[wp-trac] [WordPress Trac] #37827: Some classes still need to be moved into their own file

WordPress Trac noreply at wordpress.org
Mon Aug 29 04:46:00 UTC 2016


#37827: Some classes still need to be moved into their own file
----------------------------+--------------------
 Reporter:  wonderboymusic  |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  4.7
Component:  General         |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+--------------------

Comment (by dd32):

 Replying to [comment:8 wonderboymusic]:
 > In [changeset:"38364"]:
 > {{{
 > #!CommitTicketReference repository="" revision="38364"
 > i18n: move `is_rtl()` to `l10n.php` (which loads way earlier). Load
 `WP_Locale` file in `wp-settings.php`. Retire `wp-includes/locale.php` -
 it only loaded the class and the one function, `is_rtl()`. If someone
 loaded this file for fun somewhere else, it would be a fatal error.
 >
 > See #37827.
 > }}}

 AFAICT this has caused a fatal when `wp_die()` is called upon mu-
 plugin/plugin inclusion, as the function now exists much earlier than it
 can be called.

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


More information about the wp-trac mailing list