[wp-trac] [WordPress Trac] #48470: Remove the Custom Header and Custom Background admin pages

WordPress Trac noreply at wordpress.org
Wed Oct 30 17:30:46 UTC 2019


#48470: Remove the Custom Header and Custom Background admin pages
----------------------------+-----------------------------
 Reporter:  desrosj         |      Owner:  (none)
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:
 Severity:  normal          |   Keywords:  2nd-opinion
  Focuses:                  |
----------------------------+-----------------------------
 I fell into a rabbit hole today looking into why the `custom-header.js`
 file is
 [https://core.trac.wordpress.org/browser/branches/5.3/Gruntfile.js#L689
 specified to not get minified] in `Gruntfile.js`. I did not find an answer
 to that question (it has been like that since Core switched to the new
 build process in [25001] and I couldn't find prior discussion), but I
 realized that the custom header and background pages in the admin should
 probably be officially deprecated in favor of the Customizer.

 This is a follow up of #25569, #25571, #28032, which proposed removing
 these pages, but instead settled on an intermediary set of changes to
 encourage users, and theme and plugin developers to use the Customizer for
 this feature instead. Those changes were:
 - Change the admin menu links from links to `themes.php?page=custom-
 header`/`themes.php?page=custom-background` to deep links in the
 Customizer (`https://site.com/wp-
 admin/customize.php?autofocus[control]=header_image`)
 - Added an admin notice informing users that the feature can now be
 managed with live-preview in the Customizer.
 - Hid the Background and Header links in the admin bar and with CSS when
 Customizer support is present.

 This was in version 4.1 (5 years ago). Proper due diligence needs to be
 performed first, but I'd like to propose removing support for these pages
 in the admin in favor of redirecting users to the appropriate areas of the
 Customizer. The pages have been neglected for some time, and the previews
 are pretty broken for most themes providing a bad experience whenever a
 plugin or theme has linked to these pages directly.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48470>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list