[wp-trac] [WordPress Trac] #23863: Post Formats: allow filtering content_width per format in wp-admin

WordPress Trac noreply at wordpress.org
Wed Mar 27 09:33:13 UTC 2013


#23863: Post Formats: allow filtering content_width per format in wp-admin
--------------------------------------+------------------
 Reporter:  lancewillett              |       Owner:
     Type:  defect (bug)              |      Status:  new
 Priority:  normal                    |   Milestone:  3.6
Component:  Post Formats              |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  needs-patch dev-feedback  |
--------------------------------------+------------------

Comment (by kovshenin):

 > @todo How to tell from wp-admin if we're in a Video or Image post
 format? And, if you click Add New to make a new post, then click one of
 the Post Format tabs ... how does the Media editor know you've switched?

 We can pass the current selected post format `$('#post_format').val()` to
 the query-attachments request that gets fired in `media.model.Query.sync`
 and then look for than in `$_REQUEST`. However, since the media modal
 saves its state when closed, changing the post format and re-opening media
 will show the already fetched attachments. We'd need to reset the
 collection and have it fetch attachments again, which I think is
 inefficient, but could work.

 On the other hand, we can try and bring the content-width-based-on-post-
 formats logic into the js and resolve all of this client-side.

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


More information about the wp-trac mailing list