[wp-trac] [WordPress Trac] #32637: Customizer should default to returning to the front page, not the themes page

WordPress Trac noreply at wordpress.org
Sun Aug 23 22:51:46 UTC 2015


#32637: Customizer should default to returning to the front page, not the themes
page
-------------------------------------------------+-------------------------
 Reporter:  celloexpressions                     |       Owner:
     Type:  defect (bug)                         |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Customize                            |  Release
 Severity:  normal                               |     Version:  4.0
 Keywords:  good-first-bug 2nd-opinion has-      |  Resolution:
  patch dev-feedback                             |     Focuses:  ui
-------------------------------------------------+-------------------------

Comment (by McGuive7):

 Hey Karla!

 This issue is actually for edge cases in which neither a `url` nor
 `return` parameter are set. By default, this is all taken care of in core
 for both the front-end and admin, so testing those cases will already work
 in core - correct.

 This patch is to create a surefire return method for cases in which
 neither param is set, which might happen if plugin/theme devs are doing
 things totally by the book, for example.

 So to test this, you can manually load up your customizer page without the
 `return` and `url` parameters in the URL, and click the close (X) button
 to see where it takes you. So, by default, the customizer URL looks
 something like:

 '''From admin'''
 `http://local.wordpress-trunk.dev/wp-admin/customize.php?return=%2Fwp-
 admin%2Findex.php`

 '''From front-end'''
 `http://local.wordpress-trunk.dev/wp-
 admin/customize.php?url=http%3A%2F%2Flocal.wordpress-trunk.dev%2F`

 You can remove the entire `return` and `url` params to test, and with the
 patch you should be returned to the correct place after closing out the
 customizer again.

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


More information about the wp-trac mailing list