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

WordPress Trac noreply at wordpress.org
Tue Sep 3 16:39:45 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:
  fixed-major dev-reviewed                       |
-------------------------------------------------+-------------------------
Changes (by joedolson):

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


Comment:

 In [changeset:"58973" 58973]:
 {{{
 #!CommitTicketReference repository="" revision="58973"
 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 unslash for url, return, and autofocus before
 sanitizing.

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

 Reviewed by joedolson.
 Merges [58804] to the 6.6 branch.

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

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


More information about the wp-trac mailing list