[wp-trac] [WordPress Trac] #24291: Tweaks to Image post format UI
WordPress Trac
noreply at wordpress.org
Thu May 9 18:42:34 UTC 2013
#24291: Tweaks to Image post format UI
----------------------------+--------------------
Reporter: markjaquith | Owner:
Type: task (blessed) | Status: new
Priority: high | Milestone: 3.6
Component: Post Formats | Version: trunk
Severity: major | Resolution:
Keywords: has-patch |
----------------------------+--------------------
Comment (by azaozz):
Looking at 24291.23.diff, the use of `get_post_format()` in
[http://core.trac.wordpress.org/attachment/ticket/24291/24291.23.diff#L288
admin-header.php]. Perhaps we can make `get_post_format()` return `false`
or `null` when no $post or no post format support and return `''` (empty
string) when a post format is not set, i.e. post_format == 'standard'.
Then we can use that to add the `wp-format-*` body class only when needed.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24291#comment:10>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list