[wp-trac] [WordPress Trac] #45802: media_upload_tabs not supported in 5.0?

WordPress Trac noreply at wordpress.org
Mon Jan 7 09:27:45 UTC 2019


#45802: media_upload_tabs not supported in 5.0?
----------------------------------------+---------------------------------
 Reporter:  programmin                  |       Owner:  (none)
     Type:  defect (bug)                |      Status:  reopened
 Priority:  normal                      |   Milestone:  WordPress.org
Component:  Media                       |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  needs-codex needs-dev-note  |     Focuses:  ui, administration
----------------------------------------+---------------------------------
Changes (by SergeyBiryukov):

 * keywords:   => needs-codex needs-dev-note
 * status:  closed => reopened
 * resolution:  invalid =>
 * milestone:   => WordPress.org


Comment:

 The question is not about the Image block of Gutenberg editor, it's about
 adding a custom tab to Media Library.

 The `media_upload_tabs` filter was the old (pre-WordPress 3.5) way to add
 tabs to Media Library, but it used to have backwards compatibility with
 the 3.5+ media UI, see [22523] for #22186.

 A better way to add custom tabs to Media Library was through JavaScript,
 see
 https://www.ibenic.com/extending-wordpress-media-uploader-custom-tab/ for
 example.

 It does indeed look like Gutenberg no longer shows that particular area of
 the Media Library UI, so the documentation should be updated to clarify
 this. Let's keep the ticket open for that purpose.

 If new hooks should be added to Gutenberg to allow for custom tabs in the
 new UI, please create an issue on GitHub:
 https://github.com/WordPress/gutenberg/issues.

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


More information about the wp-trac mailing list