Changeset 53024 for trunk/src/wp-includes/script-loader.php
- Timestamp:
- 03/29/2022 07:07:15 PM (20 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/script-loader.php
r53015 r53024 1155 1155 $scripts->add( 'customize-views', '/wp-includes/js/customize-views.js', array( 'jquery', 'underscore', 'imgareaselect', 'customize-models', 'media-editor', 'media-views' ), false, 1 ); 1156 1156 $scripts->add( 'customize-controls', "/wp-admin/js/customize-controls$suffix.js", array( 'customize-base', 'wp-a11y', 'wp-util', 'jquery-ui-core' ), false, 1 ); 1157 $switch_to_site_editor_label = __( 'Use Site Editor' ); 1157 1158 did_action( 'init' ) && $scripts->localize( 1158 1159 'customize-controls', … … 1222 1223 'invalidDate' => __( 'Invalid date.' ), 1223 1224 'invalidValue' => __( 'Invalid value.' ), 1225 'blockThemeNotification' => sprintf( 1226 /* translators: 1. %s: URL to the localized version of https://wordpress.org/support/article/site-editor/, 2: HTML Button. */ 1227 __( 'Hurray! Your theme supports Full Site Editing with blocks. <a href="%1$s" target="_blank">Tell me more</a>. %2$s' ), 1228 __( 'https://wordpress.org/support/article/site-editor/' ), 1229 sprintf( 1230 /* translators: 1: URL to the Site Editor admin screen, 2: Button label, 3: Button text. */ 1231 '<button type="button" data-action="%1$s" class="button switch-to-editor" aria-label="%2$s">%3$s</button>', 1232 esc_url( admin_url( 'site-editor.php' ) ), 1233 $switch_to_site_editor_label, 1234 $switch_to_site_editor_label 1235 ) 1236 ), 1224 1237 ) 1225 1238 );
Note: See TracChangeset
for help on using the changeset viewer.