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

WordPress Trac noreply at wordpress.org
Sat Mar 16 05:31:45 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  |
----------------------------------------+------------------

Comment (by markjaquith):

 We decided in the dev chat to simplify our regex support, and to make it
 pluggable. Think something along the lines of:

 {{{
 add_chat_detection_formar( $regex_to_detect_this_type,
 $regex_to_parse_this_type );
 }}}

 Do detection based on the first line that matches one, then have the rest
 use that type. Have our core regexes use this system so we're on even
 footing. Someone can add some crazy "parse all the chats" plugin, but we
 don't need that level of crazy support in core.

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


More information about the wp-trac mailing list