[wp-trac] [WordPress Trac] #18912: No "insert into post" from Media Library

WordPress Trac wp-trac at lists.automattic.com
Fri Oct 14 17:13:47 UTC 2011

#18912: No "insert into post" from Media Library
 Reporter:  anmari                               |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Awaiting
Component:  Media                                |  Review
 Severity:  normal                               |     Version:  3.3
 Keywords:  reporter-feedback dev-feedback has-  |  Resolution:
  patch                                          |

Comment (by azaozz):

 Replying to [comment:5 SergeyBiryukov]:
 > ...
 > So the only condition for the button not to appear is when the image is
 attached to a post, and that post type doesn't support editor (or
 something makes WP think so).
 > That said, it doesn't make much sense to me.

 Right. Seems we will have to improve the logic there. Whether an image can
 be inserted should depend on the supported features of the current post,
 not the attachment parent.

 If $post_id is not present in some cases perhaps it would be better to
 assume the current post supports editor (most common). Perhaps we can try
 always passing $post_id as we have a "real" post ID now from the very

Ticket URL: <http://core.trac.wordpress.org/ticket/18912#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list