[wp-trac] [WordPress Trac] #24495: thickbox's inline content will not trigger unless it is preceeded by an ampersand

WordPress Trac noreply at wordpress.org
Tue Oct 29 06:47:19 UTC 2024


#24495: thickbox's inline content will not trigger unless it is preceeded by an
ampersand
--------------------------------+----------------------
 Reporter:  Clorith             |       Owner:  (none)
     Type:  defect (bug)        |      Status:  closed
 Priority:  normal              |   Milestone:
Component:  External Libraries  |     Version:  3.5.1
 Severity:  minor               |  Resolution:  invalid
 Keywords:                      |     Focuses:
--------------------------------+----------------------

Comment (by camyilmaz):

 The correct syntax for including inline content in a Thickbox popup is
 indeed to include an ampersand (&) before the inlineId parameter in the
 link URL. Such as;

 {{{#!php
 <a href="#TB_inline?&inlineId=foo-bar">Open Thickbox</a>
 }}}


 Without the ampersand, the Thickbox might not pick up the inlineId
 parameter correctly, resulting in an empty or malfunctioning Thickbox
 popup.

 This behavior is due to the way parameters are parsed in URLs. Including
 the ampersand ensures that the inlineId parameter is properly separated
 from any preceding parameters in the URL.

 By using the correct syntax with the ampersand, you should be able to
 successfully trigger the Thickbox popup and load the inline content as
 intended.

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


More information about the wp-trac mailing list