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

WordPress Trac noreply at wordpress.org
Thu Sep 1 12:35:39 UTC 2016


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

Comment (by pento):

 In [changeset:"38496"]:
 {{{
 #!CommitTicketReference repository="" revision="38496"
 Bootstrap: `class-wp-locale.php` needs to be `require_once()`-ed.

 After [38364], the inclusion of `class-wp-locale.php` was changed from a
 `require_once()` to a `require()`. This caused problems for anything that
 called `load_text_domain_early()` prior to the `require()` but didn't
 bail, as it was now being `require()`-ed a second time.

 With the use of `require_once()`, it doesn't really matter where it's
 loaded, so it has been moved next to the related `l10n.php` load.

 See #37827.
 }}}

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


More information about the wp-trac mailing list