File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -358,14 +358,14 @@ public function handle_redirects() {
358358 if ( ! empty ( $ _GET ) ) { // phpcs:ignore WordPress.Security.NonceVerification
359359 foreach ( $ _GET as $ key => $ value ) { // phpcs:ignore WordPress.Security.NonceVerification
360360 // Remap reserved "name" param to avoid canonical redirect
361- if ( $ key === ' name ' ) {
361+ if ( ' name ' === $ key ) {
362362 $ key = 'license_name ' ;
363363 }
364364
365365 $ sanitized_key = sanitize_key ( $ key );
366366 $ sanitized_value = is_array ( $ value )
367- ? array_map ( 'sanitize_text_field ' , $ value )
368- : sanitize_text_field ( $ value );
367+ ? array_map ( 'sanitize_text_field ' , $ value )
368+ : sanitize_text_field ( $ value );
369369
370370 $ request ->set_param ( $ sanitized_key , $ sanitized_value );
371371 }
You can’t perform that action at this time.
0 commit comments