[wp-trac] [WordPress Trac] #21492: Theme customizer > Static front page: missing error message when front page and posts pages are similar

WordPress Trac noreply at wordpress.org
Mon Sep 12 17:56:00 UTC 2016


#21492: Theme customizer > Static front page: missing error message when front page
and posts pages are similar
--------------------------+-----------------------------
 Reporter:  hd-J          |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Future Release
Component:  Customize     |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |     Focuses:  ui
--------------------------+-----------------------------
Changes (by westonruter):

 * keywords:  has-patch dev-feedback => needs-patch


Comment:

 This should be re-worked to use the new setting validation API. If
 `page_on_front` is set to the same as `page_for_posts` it can fail
 validation.

 Furthermore, this can be improved further to prevent the two dropdowns
 from selecting the same page to begin with. Once a selection is made in
 the first dropdown, the corresponding `option` in the second dropdown can
 be `disabled` to prevent it from even being selected. I recently
 implemented this on a Select2 replacement for the existing `dropdown-
 pages` controls: https://github.com/xwp/wp-customize-object-
 selector/pull/22

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


More information about the wp-trac mailing list