[wp-trac] [WordPress Trac] #23198: Pass post format as a class to TinyMCE init
WordPress Trac
noreply at wordpress.org
Sun Jan 20 19:58:14 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 adamsilverstein):
i'm note sure if there is an advantage in returning WP_Error vs. returning
false, maybe providing more information;
set_post_format [http://core.trac.wordpress.org/browser/trunk/wp-
includes/post.php#L807 does return WP_Error], maybe we should add these
lines into get_post_format?
if ( empty($post) )
return new WP_Error('invalid_post', __('Invalid post'));
--
Ticket URL: <http://core.trac.wordpress.org/ticket/23198#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list