[wp-trac] [WordPress Trac] #23225: Customizer is Incompatible with jQuery UI Tabs.

WordPress Trac noreply at wordpress.org
Mon Oct 28 16:17:38 UTC 2013


#23225: Customizer is Incompatible with jQuery UI Tabs.
--------------------------+------------------------------
 Reporter:  mfields       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Appearance    |     Version:  3.4
 Severity:  normal        |  Resolution:
 Keywords:  needs-patch   |
--------------------------+------------------------------

Comment (by deltafactory):

 This is related to a hotly debated jQuery "bug" related to the use of the
 `<base>` tag, which done by the Customizer. See their ticket here:
 http://bugs.jqueryui.com/ticket/7822

 Specifically, the result of jQuery UI Tab's `isLocal()` on hash-only urls
 (e.g. `href="#my-tab-1"`) unexpectedly returns false. This triggers an
 ajax call to pull in the tab's content. In the Customizer's case, that's
 the Customizer page itself (not pretty.)

 == Possible fixes:==
 The jQuery dev team recommends the use of absolute URLs.

 I will suggest a simple check to see if URL to the left of the hash is an
 empty string which should be "local" by definition, though I forsee poor
 reception.

 One commenter on the ticket has detailed the problem and a few suggestions
 here http://tjvantoll.com/2013/02/17/using-jquery-ui-tabs-with-the-base-
 tag/. His third suggestion is a hacky work-around but may be the most
 universal fix for the Customizer barring a solution by jQuery.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/23225#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list