[wp-trac] [WordPress Trac] #61561: autofocus query string parameter in customizer url is broken in WP6.6-RC2

WordPress Trac noreply at wordpress.org
Wed Jul 24 16:22:16 UTC 2024


#61561: autofocus query string parameter in customizer url is broken in WP6.6-RC2
-----------------------------------------------+---------------------------
 Reporter:  jamesros161                        |       Owner:
                                               |  hellofromTonya
     Type:  defect (bug)                       |      Status:  closed
 Priority:  normal                             |   Milestone:  6.6.2
Component:  Customize                          |     Version:  6.6
 Severity:  normal                             |  Resolution:  fixed
 Keywords:  has-patch has-testing-info commit  |     Focuses:
-----------------------------------------------+---------------------------
Changes (by hellofromTonya):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"58804" 58804]:
 {{{
 #!CommitTicketReference repository="" revision="58804"
 Customize: Sanitize autofocus URL parameter as an array.

 [58069] introduced calling `sanitize_text_field()` with
 `$_REQUEST['autofocus']` (which is an array) and setting its default to a
 `string`. This fix restores the `array` data type for `autofocus`.

 The fix also relocates the unsplash for `url`, `return`, and `autofocus`
 before sanitizing.

 Follow-up to [58069], [34269], [29026], [21028].

 Props jamesros161, swissspidy, dlh, audrasjb, hellofromTonya,
 ironprogrammer.
 Fixes #61561.
 }}}

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


More information about the wp-trac mailing list