[wp-trac] [WordPress Trac] #23198: Pass post format as a class to TinyMCE init
WordPress Trac
noreply at wordpress.org
Sun Jan 20 19:46:54 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:8 adamsilverstein]:
> my patch adds a little more error checking and sanitizing, and a post-
standard-format fallback;
As far as I see `get_post_format()`
[http://core.trac.wordpress.org/browser/trunk/wp-includes/post.php#L756
does not return WP_Error] (phpdoc is wrong there?) and already checks
whether the post type supports formats. Perhaps we should update
`get_body_class()` in post-template.php.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23198#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list