[wp-trac] [WordPress Trac] #61780: customize.php - autofocus - not working anymore - issue with the sanitize

WordPress Trac noreply at wordpress.org
Sun Jul 28 07:54:17 UTC 2024


#61780: customize.php - autofocus - not working anymore - issue with the sanitize
--------------------------+-----------------------------
 Reporter:  incrediblewp  |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Customize     |    Version:  6.6.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 WordPress version: 6.6.1
 Description:
 When using the autofocus url parameter to automatically focus on a
 registred "section", it is not working anymore. While looking on the
 latest customize.php code, a specific line was added to sanitize the input
 parameter, however it is not a text string, it is an array.

 $autofocus = ! empty( $_REQUEST['autofocus'] ) ? sanitize_text_field(
 $_REQUEST['autofocus'] ) : '';
 error_log(print_r( $_REQUEST['autofocus'] , true));

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/61780>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list