[wp-trac] [WordPress Trac] #23930: Screen option for post formats UI

WordPress Trac noreply at wordpress.org
Thu Apr 25 00:18:52 UTC 2013


#23930: Screen option for post formats UI
-----------------------------+--------------------
 Reporter:  johnbillion      |       Owner:
     Type:  feature request  |      Status:  new
 Priority:  normal           |   Milestone:  3.6
Component:  Administration   |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:                   |
-----------------------------+--------------------

Comment (by nacin):

 [attachment:23930.diff] is a rough cut. It creates a "Post Formats" screen
 option that is stored in usermeta, in a way that is per post type, per
 site, and per user.

 A few things that should be done:
  * Consider storing all post types in a single meta key. It is likely this
 will only occur for 'post' anyway, but no reason to have multiple keys
 otherwise.
  * Create some unit tests for update_user_option(). I can't think of a
 reason why this would break back compat - rather, it would make it
 possible to deal with three states (true, false, and not stored).
  * The logic for "should the UI be shown" should be abstracted into
 show_post_format_ui(), which returns a boolean through a filter.
  * There should be a way to disable the screen option and force post
 formats to be on, probably with a filter in screen.php.

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


More information about the wp-trac mailing list