[wp-trac] [WordPress Trac] #21012: Dashboard plugin stats widget messing up plugin title

WordPress Trac wp-trac at lists.automattic.com
Mon Jun 18 15:58:35 UTC 2012


#21012: Dashboard plugin stats widget messing up plugin title
-----------------------------+-----------------------------
 Reporter:  georgestephanis  |      Owner:
     Type:  defect (bug)     |     Status:  new
 Priority:  normal           |  Milestone:  Awaiting Review
Component:  General          |    Version:  3.4
 Severity:  normal           |   Keywords:  has-patch
-----------------------------+-----------------------------
 When a user's name has double-quotes in it, like Otto (
 http://cloud.stephanis.info/1a3b2T432N090G0z3T2Q ), the line in the code

 ` if ( preg_match( '/"(.*)"/s', $item->get_title(), $matches ) )
 `

 escapes the title from

 `Samuel "Otto" Wood on "Facebook"`

 to

 `Otto" Wood on "Facebook`

 Let's actually make it sniff for the ` on ` before the double-quote to
 avoid this.

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


More information about the wp-trac mailing list