[wp-trac] [WordPress Trac] #23625: Add function to extract or parse chat as structured data

WordPress Trac noreply at wordpress.org
Wed Mar 27 15:59:33 UTC 2013


#23625: Add function to extract or parse chat as structured data
----------------------------------------------------+------------------
 Reporter:  wonderboymusic                          |       Owner:
     Type:  feature request                         |      Status:  new
 Priority:  normal                                  |   Milestone:  3.6
Component:  Post Formats                            |     Version:
 Severity:  normal                                  |  Resolution:
 Keywords:  has-patch needs-unit-tests needs-codex  |
----------------------------------------------------+------------------

Comment (by obenland):

 .11 does some clean up. A few things to explain:

 * Added periods to some comments (might be worth it to standardize that
 across post-format.php)
 * Moved similar variable declarations together
 * Sets up `$newline_regex`, `$delimiter_regex` in regex checker loop.
 * Changed chat class to just 'chat' to be consistent with proposed quote
 fallback
 * Sanitized author with dashes to avoid cases like `class="chat-author-
 lance willet"`
 * Message should not be html escaped, so make_clickable() works.

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


More information about the wp-trac mailing list