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

WordPress Trac noreply at wordpress.org
Fri Apr 5 19:51:18 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 MikeHansenMe):

 I have been having a bit of trouble with it this morning as well.
 The transcript I used (google chat):
 {{{
 3:54 PM me: http://i.imgur.com/qjjlkGm.gif
 3:55 PM Jason: I am so confused
   I will have to watch it a few times to see how they get the extra piece
 :)
 3:56 PM me: me too cant figure it out probably watched it 20 times now
  Jason: but now I know I can steal a square out of my wife's candy bar and
 get away with it :D
  me: yes!
 3:57 PM Jason: now I am going to have to buy her one to try it out
 }}}
 The result:
 {{{
 3:
     54 PM me: http://i.imgur.com/qjjlkGm.gif
 3:
     55 PM Jason: I am so confused I will have to watch it a few times to
 see how they get the extra piece :)
 3:
     56 PM me: me too cant figure it out probably watched it 20 times now
 Jason:
     but now I know I can steal a square out of my wife's candy bar and get
 away with it :D
 me:
     yes!
 3:
     57 PM Jason: now I am going to have to buy her one to try it out
 }}}

 I know this may be because Google chat is not supported but I think "IM"
 needs to be more clear as to what it includes. I also ran into a situation
 like @ipstenu where the output just went blank. I think if it gets hung up
 or cannot recognize a chat style it should output everything not nothing.
 I also got an undefined index on line 529 in post formats.
 {{{
 $author_match = empty( $matches[2] ) ? $matches[1] : $matches[2];
 }}}

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


More information about the wp-trac mailing list