[wp-trac] [WordPress Trac] #39168: Double slash when loading mu-plugin textdomain

WordPress Trac noreply at wordpress.org
Wed Dec 7 22:50:25 UTC 2016


#39168: Double slash when loading mu-plugin textdomain
--------------------------+-----------------------------
 Reporter:  nsundberg     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  I18N          |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 `load_muplugin_textdomain()` creates double slashes for
 `load_textdomain()`. The function first uses `trailingslashit()` and then
 concatenating the path and filename with an additional `/`.

 See lines 756-758 [source:trunk/src/wp-includes/l10n.php#L756]:
 {{{#!php
 $path = trailingslashit( WPMU_PLUGIN_DIR . '/' . ltrim(
 $mu_plugin_rel_path, '/' ) );

 return load_textdomain( $domain, $path . '/' . $mofile );
 }}}

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


More information about the wp-trac mailing list