[wp-trac] [WordPress Trac] #21092: Media uploader insert button doesn't respect the current post type

WordPress Trac wp-trac at lists.automattic.com
Thu Jun 28 08:35:07 UTC 2012


#21092: Media uploader insert button doesn't respect the current post type
-------------------------+------------------------------
 Reporter:  evansolomon  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Media        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+------------------------------

Comment (by evansolomon):

 Replying to [comment:4 johnbillion]:
 > Your patch should include the `insert_into_post` label for WordPress'
 built in Post and Page post types (in `get_post_type_labels()`). It's then
 up to individual post types to include their own `insert_into_post` label.
 >
 > I realise this doesn't address what you are trying to achieve with this
 ticket (which is, for this button to always display the correct post type
 name for custom post types) but unfortunately that's how it is.

 Fair enough, this makes sense.  I took another swing at it in
 [http://core.trac.wordpress.org/attachment/ticket/21092/21092.3.diff
 21092.3.diff].

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


More information about the wp-trac mailing list