Changeset 39571
- Timestamp:
- 12/12/2016 01:58:21 AM (8 years ago)
- Location:
- branches/4.7
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.7
-
branches/4.7/src/wp-includes/class-wp-customize-manager.php
r39507 r39571 1777 1777 $allowed_hosts[] = $host; 1778 1778 } 1779 1780 $switched_locale = switch_to_locale( get_user_locale() ); 1781 $l10n = array( 1782 'shiftClickToEdit' => __( 'Shift-click to edit this element.' ), 1783 'linkUnpreviewable' => __( 'This link is not live-previewable.' ), 1784 'formUnpreviewable' => __( 'This form is not live-previewable.' ), 1785 ); 1786 if ( $switched_locale ) { 1787 restore_previous_locale(); 1788 } 1789 1779 1790 $settings = array( 1780 1791 'changeset' => array( … … 1801 1812 'settingValidities' => $exported_setting_validities, 1802 1813 'nonce' => current_user_can( 'customize' ) ? $this->get_nonces() : array(), 1803 'l10n' => array( 1804 'shiftClickToEdit' => __( 'Shift-click to edit this element.' ), 1805 'linkUnpreviewable' => __( 'This link is not live-previewable.' ), 1806 'formUnpreviewable' => __( 'This form is not live-previewable.' ), 1807 ), 1814 'l10n' => $l10n, 1808 1815 '_dirty' => array_keys( $post_values ), 1809 1816 ); -
branches/4.7/src/wp-includes/class-wp-customize-widgets.php
r38810 r39571 1124 1124 global $wp_registered_sidebars, $wp_registered_widgets; 1125 1125 1126 $switched_locale = switch_to_locale( get_user_locale() ); 1127 $l10n = array( 1128 'widgetTooltip' => __( 'Shift-click to edit this widget.' ), 1129 ); 1130 if ( $switched_locale ) { 1131 restore_previous_locale(); 1132 } 1133 1126 1134 // Prepare Customizer settings to pass to JavaScript. 1127 1135 $settings = array( … … 1130 1138 'registeredSidebars' => array_values( $wp_registered_sidebars ), 1131 1139 'registeredWidgets' => $wp_registered_widgets, 1132 'l10n' => array( 1133 'widgetTooltip' => __( 'Shift-click to edit this widget.' ), 1134 ), 1140 'l10n' => $l10n, 1135 1141 'selectiveRefreshableWidgets' => $this->get_selective_refreshable_widgets(), 1136 1142 ); -
branches/4.7/src/wp-includes/customize/class-wp-customize-selective-refresh.php
r39144 r39571 180 180 } 181 181 182 $switched_locale = switch_to_locale( get_user_locale() ); 183 $l10n = array( 184 'shiftClickToEdit' => __( 'Shift-click to edit this element.' ), 185 'clickEditMenu' => __( 'Click to edit this menu.' ), 186 'clickEditWidget' => __( 'Click to edit this widget.' ), 187 'clickEditTitle' => __( 'Click to edit the site title.' ), 188 'clickEditMisc' => __( 'Click to edit this element.' ), 189 /* translators: %s: document.write() */ 190 'badDocumentWrite' => sprintf( __( '%s is forbidden' ), 'document.write()' ), 191 ); 192 if ( $switched_locale ) { 193 restore_previous_locale(); 194 } 195 182 196 $exports = array( 183 197 'partials' => $partials, 184 198 'renderQueryVar' => self::RENDER_QUERY_VAR, 185 'l10n' => array( 186 'shiftClickToEdit' => __( 'Shift-click to edit this element.' ), 187 'clickEditMenu' => __( 'Click to edit this menu.' ), 188 'clickEditWidget' => __( 'Click to edit this widget.' ), 189 'clickEditTitle' => __( 'Click to edit the site title.' ), 190 'clickEditMisc' => __( 'Click to edit this element.' ), 191 /* translators: %s: document.write() */ 192 'badDocumentWrite' => sprintf( __( '%s is forbidden' ), 'document.write()' ), 193 ), 199 'l10n' => $l10n, 194 200 ); 195 201
Note: See TracChangeset
for help on using the changeset viewer.