[wp-trac] [WordPress Trac] #57612: Deprecate `wp-admin/media.php`

WordPress Trac noreply at wordpress.org
Thu Feb 2 15:25:41 UTC 2023


#57612: Deprecate `wp-admin/media.php`
---------------------------+-----------------------------------------------
 Reporter:  kebbet         |       Owner:  (none)
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Media          |     Version:
 Severity:  normal         |  Resolution:
 Keywords:  needs-patch    |     Focuses:  administration, coding-standards
  2nd-opinion              |
---------------------------+-----------------------------------------------

Comment (by SergeyBiryukov):

 Replying to [ticket:57612 kebbet]:
 > The file was introduced in #6181/[7262]. Not sure when it was removed
 from media workflow.

 I think it was removed in [21948] / #21391, see the change to `_edit_link`
 for the `attachment` post type:
 {{{
 -        '_edit_link' => 'media.php?attachment_id=%d', /* internal use
 only. don't use this when registering your own post type. */
 +        '_edit_link' => 'post.php?post=%d', /* internal use only. don't
 use this when registering your own post type.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57612#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list