[wp-trac] [WordPress Trac] #23625: Add function to extract or parse chat as structured data
WordPress Trac
noreply at wordpress.org
Fri Mar 22 15:10:13 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 wonderboymusic):
Updated patch and unit tests
In this patch:
- Introduce `add_chat_detection_format( $name, $newline_regex,
$delimiter_regex )`
- Introduce `get_content_chat( &$content, $remove = false )`
- Introduce `get_the_chat( $id = 0 )`
Add chat support for IM and Skype:
{{{
add_chat_detection_format( 'IM', '#^([^:]+):#', '#[:]#' );
add_chat_detection_format( 'Skype', '#^(\[.+?\])\s([^:]+):#', '#[:]#' );
}}}
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23625#comment:29>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list