[wp-trac] [WordPress Trac] #22267: Make trailingslashit() and untrailingslashit() work with backslashes (was: Add optional boolean argument to trailingslashit() and untrailingslashit())

WordPress Trac noreply at wordpress.org
Wed Oct 24 15:13:12 UTC 2012


#22267: Make trailingslashit() and untrailingslashit() work with backslashes
-------------------------+------------------------------
 Reporter:  knutsp       |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Filesystem   |     Version:  2.2
 Severity:  normal       |  Resolution:
 Keywords:  2nd-opinion  |
-------------------------+------------------------------

Comment (by scribu):

 Positional boolean arguments are hard to read. You could have a
 `$separator = '/'` instead.

 And, in general, when opening a ticket, describe the benefit not the
 solution.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/22267#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list