[wp-trac] [WordPress Trac] #23198: Pass post format as a class to TinyMCE init

WordPress Trac noreply at wordpress.org
Sun Jan 20 20:59:24 UTC 2013


#23198: Pass post format as a class to TinyMCE init
--------------------------------+------------------
 Reporter:  helen               |       Owner:
     Type:  enhancement         |      Status:  new
 Priority:  normal              |   Milestone:  3.6
Component:  TinyMCE             |     Version:
 Severity:  normal              |  Resolution:
 Keywords:  easy-fix has-patch  |
--------------------------------+------------------

Comment (by azaozz):

 Replying to [comment:12 adamsilverstein]:

 Seems `get_post_format()` is called after we have the post, i.e. without
 passing an argument or passing `$post->ID`. However passing a non-existing
 post ID will throw a PHP notice. Not sure whether we need WP_Error there
 or simply:

 {{{
 if ( empty($post) )
     return $post;
 }}}

 This would need a now ticket in any case.

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


More information about the wp-trac mailing list