Changeset 30164
- Timestamp:
- 11/01/2014 10:16:19 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/customize.php
r30102 r30164 283 283 284 284 // Pass to frontend the Customizer construct being deeplinked 285 if ( isset( $_GET['autofocus'] ) && is_array( $_GET['autofocus'] )) {285 if ( isset( $_GET['autofocus'] ) ) { 286 286 $autofocus = wp_unslash( $_GET['autofocus'] ); 287 foreach ( $autofocus as $type => $id ) { 288 if ( isset( $settings[ $type . 's' ][ $id ] ) ) { 289 $settings['autofocus'][ $type ] = $id; 287 if ( is_array( $autofocus ) ) { 288 foreach ( $autofocus as $type => $id ) { 289 if ( isset( $settings[ $type . 's' ][ $id ] ) ) { 290 $settings['autofocus'][ $type ] = $id; 291 } 290 292 } 291 293 }
Note: See TracChangeset
for help on using the changeset viewer.