[wp-trac] [WordPress Trac] #19904: Trim Leading and Trailing White Space in a Post Title

WordPress Trac wp-trac at lists.automattic.com
Thu Jan 26 23:37:16 UTC 2012


#19904: Trim Leading and Trailing White Space in a Post Title
-----------------------------+-----------------------------
 Reporter:  greenspeakmedia  |      Owner:
     Type:  feature request  |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General          |    Version:  3.3.1
 Severity:  normal           |   Keywords:
-----------------------------+-----------------------------
 In working with clients today I realized that they were copying and
 pasting post titles but including a leading space in it by accident.
 Because of this the orderby feature of the query wasn't appearing to work.
 Turns out it was but the spaces where all correct so it was messing with
 the query.

 I think it would make sense that on a title field of a post/ page that any
 leading whitespaces and any trailing white spaces should be trimmed off.

 something like


 {{{
 trim($post_title);
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19904>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list