[wp-trac] [WordPress Trac] #57218: undefined function trailingslashit() when .maintenance present - Windows server

WordPress Trac noreply at wordpress.org
Thu Feb 9 16:33:50 UTC 2023


#57218: undefined function trailingslashit() when .maintenance present - Windows
server
--------------------------+-------------------------
 Reporter:  grl570810     |       Owner:  swissspidy
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  6.1.2
Component:  I18N          |     Version:  6.1
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:
--------------------------+-------------------------
Changes (by swissspidy):

 * owner:  (none) => swissspidy
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"55302" 55302]:
 {{{
 #!CommitTicketReference repository="" revision="55302"
 I18N: Prevent fatal error in `WP_Textdomain_Registry`.

 Use `rtrim` instead of `untrailingslashit` and `trailingslashit` directly.

 Avoids `formatting.php` dependency and thus prevents an error when called
 via `wp_load_translations_early()`, which happens e.g. when in maintenance
 mode.

 Props grl570810, ocean90.
 Fixes #57218.
 }}}

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


More information about the wp-trac mailing list