Changeset 36796 for trunk/src/wp-includes/class-wp-customize-manager.php
- Timestamp:
- 03/01/2016 10:03:27 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-manager.php
r36776 r36796 1729 1729 'sections' => array(), 1730 1730 'nonce' => $this->get_nonces(), 1731 'autofocus' => array(),1731 'autofocus' => $this->get_autofocus(), 1732 1732 'documentTitleTmpl' => $this->get_document_title_template(), 1733 1733 'previewableDevices' => $this->get_previewable_devices(), … … 1751 1751 } 1752 1752 } 1753 }1754 }1755 1756 // Pass to front end the Customizer construct being deeplinked.1757 foreach ( $this->get_autofocus() as $type => $id ) {1758 $can_autofocus = (1759 ( 'control' === $type && $this->get_control( $id ) && $this->get_control( $id )->check_capabilities() )1760 ||1761 ( 'section' === $type && isset( $settings['sections'][ $id ] ) )1762 ||1763 ( 'panel' === $type && isset( $settings['panels'][ $id ] ) )1764 );1765 if ( $can_autofocus ) {1766 $settings['autofocus'][ $type ] = $id;1767 1753 } 1768 1754 }
Note: See TracChangeset
for help on using the changeset viewer.