334
336
$scripts->add( 'imgareaselect', "/wp-includes/js/imgareaselect/jquery.imgareaselect$suffix.js", array('jquery'), false, 1 );
336
$scripts->add( 'mediaelement', "/wp-includes/js/mediaelement/mediaelement-and-player.min.js", array('jquery'), '2.18.1-a', 1 );
338
$scripts->add( 'mediaelement', "/wp-includes/js/mediaelement/mediaelement-and-player.min.js", array('jquery'), '2.22.0', 1 );
337
339
did_action( 'init' ) && $scripts->localize( 'mediaelement', 'mejsL10n', array(
338
340
'language' => get_bloginfo( 'language' ),
339
341
'strings' => array(
340
'Close' => __( 'Close' ),
341
'Fullscreen' => __( 'Fullscreen' ),
342
'Download File' => __( 'Download File' ),
343
'Download Video' => __( 'Download Video' ),
344
'Play/Pause' => __( 'Play/Pause' ),
345
'Mute Toggle' => __( 'Mute Toggle' ),
346
'None' => __( 'None' ),
347
'Turn off Fullscreen' => __( 'Turn off Fullscreen' ),
348
'Go Fullscreen' => __( 'Go Fullscreen' ),
349
'Unmute' => __( 'Unmute' ),
350
'Mute' => __( 'Mute' ),
351
'Captions/Subtitles' => __( 'Captions/Subtitles' )
342
'Close' => __( 'Close' ),
343
'Fullscreen' => __( 'Fullscreen' ),
344
'Turn off Fullscreen' => __( 'Turn off Fullscreen' ),
345
'Go Fullscreen' => __( 'Go Fullscreen' ),
346
'Download File' => __( 'Download File' ),
347
'Download Video' => __( 'Download Video' ),
348
'Play' => __( 'Play' ),
349
'Pause' => __( 'Pause' ),
350
'Captions/Subtitles' => __( 'Captions/Subtitles' ),
351
'None' => __( 'None', 'no captions/subtitles' ),
352
'Time Slider' => __( 'Time Slider' ),
353
/* translators: %1: number of seconds (30 by default) */
354
'Skip back %1 seconds' => __( 'Skip back %1 seconds' ),
355
'Video Player' => __( 'Video Player' ),
356
'Audio Player' => __( 'Audio Player' ),
357
'Volume Slider' => __( 'Volume Slider' ),
358
'Mute Toggle' => __( 'Mute Toggle' ),
359
'Unmute' => __( 'Unmute' ),
360
'Mute' => __( 'Mute' ),
361
'Use Up/Down Arrow keys to increase or decrease volume.' => __( 'Use Up/Down Arrow keys to increase or decrease volume.' ),
362
'Use Left/Right Arrow keys to advance one second, Up/Down arrows to advance ten seconds.' => __( 'Use Left/Right Arrow keys to advance one second, Up/Down arrows to advance ten seconds.' ),
593
607
did_action( 'init' ) && $scripts->localize( 'updates', '_wpUpdatesSettings', array(
594
608
'ajax_nonce' => wp_create_nonce( 'updates' ),
596
'updating' => __( 'Updating...' ), // no ellipsis
597
'updated' => __( 'Updated!' ),
598
'updateFailedShort' => __( 'Update Failed!' ),
599
/* translators: Error string for a failed update */
600
'updateFailed' => __( 'Update Failed: %s' ),
601
/* translators: Plugin name and version */
602
'updatingLabel' => __( 'Updating %s...' ), // no ellipsis
603
/* translators: Plugin name and version */
604
'updatedLabel' => __( '%s updated!' ),
605
/* translators: Plugin name and version */
606
'updateFailedLabel' => __( '%s update failed' ),
607
/* translators: JavaScript accessible string */
608
'updatingMsg' => __( 'Updating... please wait.' ), // no ellipsis
609
/* translators: JavaScript accessible string */
610
'updatedMsg' => __( 'Update completed successfully.' ),
611
/* translators: JavaScript accessible string */
612
'updateCancel' => __( 'Update canceled.' ),
613
'beforeunload' => __( 'Plugin updates may not complete if you navigate away from this page.' ),
610
/* translators: %s: Search string */
611
'searchResults' => __( 'Search results for “%s”' ),
612
'searchResultsLabel' => __( 'Search Results' ),
613
'noPlugins' => __( 'You do not appear to have any plugins available at this time.' ),
614
'noItemsSelected' => __( 'Please select at least one item to perform this action on.' ),
615
'updating' => __( 'Updating...' ), // No ellipsis.
616
'updated' => __( 'Updated!' ),
617
'update' => __( 'Update' ),
618
'updateNow' => __( 'Update Now' ),
619
/* translators: %s: Plugin name and version */
620
'updateNowLabel' => __( 'Update %s now' ),
621
'updateFailedShort' => __( 'Update Failed!' ),
622
/* translators: %s: Error string for a failed update */
623
'updateFailed' => __( 'Update Failed: %s' ),
624
/* translators: %s: Plugin name and version */
625
'updatingLabel' => __( 'Updating %s...' ), // No ellipsis.
626
/* translators: %s: Plugin name and version */
627
'updatedLabel' => __( '%s updated!' ),
628
/* translators: %s: Plugin name and version */
629
'updateFailedLabel' => __( '%s update failed' ),
630
/* translators: JavaScript accessible string */
631
'updatingMsg' => __( 'Updating... please wait.' ), // No ellipsis.
632
/* translators: JavaScript accessible string */
633
'updatedMsg' => __( 'Update completed successfully.' ),
634
/* translators: JavaScript accessible string */
635
'updateCancel' => __( 'Update canceled.' ),
636
'beforeunload' => __( 'Updates may not complete if you navigate away from this page.' ),
637
'installNow' => __( 'Install Now' ),
638
/* translators: %s: Plugin name */
639
'installNowLabel' => __( 'Install %s now' ),
640
'installing' => __( 'Installing...' ),
641
'installed' => __( 'Installed!' ),
642
'installFailedShort' => __( 'Install Failed!' ),
643
/* translators: %s: Error string for a failed installation */
644
'installFailed' => __( 'Installation failed: %s' ),
645
/* translators: %s: Plugin name and version */
646
'pluginInstallingLabel' => _x( 'Installing %s...', 'plugin' ), // no ellipsis
647
/* translators: %s: Theme name and version */
648
'themeInstallingLabel' => _x( 'Installing %s...', 'theme' ), // no ellipsis
649
/* translators: %s: Plugin name and version */
650
'pluginInstalledLabel' => _x( '%s installed!', 'plugin' ),
651
/* translators: %s: Theme name and version */
652
'themeInstalledLabel' => _x( '%s installed!', 'theme' ),
653
/* translators: %s: Plugin name and version */
654
'pluginInstallFailedLabel' => _x( '%s installation failed', 'plugin' ),
655
/* translators: %s: Theme name and version */
656
'themeInstallFailedLabel' => _x( '%s installation failed', 'theme' ),
657
'installingMsg' => __( 'Installing... please wait.' ),
658
'installedMsg' => __( 'Installation completed successfully.' ),
659
/* translators: %s: Activation URL */
660
'importerInstalledMsg' => __( 'Importer installed successfully. <a href="%s">Run importer</a>' ),
661
/* translators: %s: Theme name */
662
'aysDelete' => __( 'Are you sure you want to delete %s?' ),
663
/* translators: %s: Plugin name */
664
'aysDeleteUninstall' => __( 'Are you sure you want to delete %s and its data?' ),
665
'aysBulkDelete' => __( 'Are you sure you want to delete the selected plugins and their data?' ),
666
'aysBulkDeleteThemes' => __( 'Caution: These themes may be active on other sites in the network. Are you sure you want to proceed?' ),
667
'deleting' => __( 'Deleting...' ),
668
/* translators: %s: Error string for a failed deletion */
669
'deleteFailed' => __( 'Deletion failed: %s' ),
670
'deleted' => __( 'Deleted!' ),
671
'livePreview' => __( 'Live Preview' ),
672
'activatePlugin' => is_network_admin() ? __( 'Network Activate' ) : __( 'Activate' ),
673
'activateTheme' => is_network_admin() ? __( 'Network Enable' ) : __( 'Activate' ),
674
/* translators: %s: Plugin name */
675
'activatePluginLabel' => is_network_admin() ? _x( 'Network Activate %s', 'plugin' ) : _x( 'Activate %s', 'plugin' ),
676
/* translators: %s: Theme name */
677
'activateThemeLabel' => is_network_admin() ? _x( 'Network Activate %s', 'theme' ) : _x( 'Activate %s', 'theme' ),
678
'activateImporter' => __( 'Run Importer' ),
679
/* translators: %s: Importer name */
680
'activateImporterLabel' => __( 'Run %s' ),
681
'unknownError' => __( 'An unknown error occurred' ),
682
'connectionError' => __( 'Connection lost or the server is busy. Please try again later.' ),
683
'nonceError' => __( 'An error has occurred. Please reload the page and try again.' ),
684
'pluginsFound' => __( 'Number of plugins found: %d' ),
685
'noPluginsFound' => __( 'No plugins found. Try a different search.' ),
617
689
$scripts->add( 'farbtastic', '/wp-admin/js/farbtastic.js', array('jquery'), '1.2' );
741
814
$styles->add( 'site-icon', "/wp-admin/css/site-icon$suffix.css" );
742
815
$styles->add( 'l10n', "/wp-admin/css/l10n$suffix.css" );
744
$styles->add( 'wp-admin', false, array( 'open-sans', 'dashicons', 'common', 'forms', 'admin-menu', 'dashboard', 'list-tables', 'edit', 'revisions', 'media', 'themes', 'about', 'nav-menus', 'widgets', 'site-icon', 'l10n' ) );
817
$styles->add( 'wp-admin', false, array( 'dashicons', 'common', 'forms', 'admin-menu', 'dashboard', 'list-tables', 'edit', 'revisions', 'media', 'themes', 'about', 'nav-menus', 'widgets', 'site-icon', 'l10n' ) );
746
$styles->add( 'login', "/wp-admin/css/login$suffix.css", array( 'open-sans', 'dashicons', 'buttons', 'forms', 'l10n' ) );
747
$styles->add( 'install', "/wp-admin/css/install$suffix.css", array( 'open-sans', 'buttons' ) );
819
$styles->add( 'login', "/wp-admin/css/login$suffix.css", array( 'dashicons', 'buttons', 'forms', 'l10n' ) );
820
$styles->add( 'install', "/wp-admin/css/install$suffix.css", array( 'buttons' ) );
748
821
$styles->add( 'wp-color-picker', "/wp-admin/css/color-picker$suffix.css" );
749
822
$styles->add( 'customize-controls', "/wp-admin/css/customize-controls$suffix.css", array( 'wp-admin', 'colors', 'ie', 'imgareaselect' ) );
750
823
$styles->add( 'customize-widgets', "/wp-admin/css/customize-widgets$suffix.css", array( 'wp-admin', 'colors' ) );
751
824
$styles->add( 'customize-nav-menus', "/wp-admin/css/customize-nav-menus$suffix.css", array( 'wp-admin', 'colors' ) );
752
$styles->add( 'press-this', "/wp-admin/css/press-this$suffix.css", array( 'open-sans', 'buttons' ) );
825
$styles->add( 'press-this', "/wp-admin/css/press-this$suffix.css", array( 'buttons' ) );
754
827
$styles->add( 'ie', "/wp-admin/css/ie$suffix.css" );
755
828
$styles->add_data( 'ie', 'conditional', 'lte IE 7' );
841
914
'autosaveInterval' => AUTOSAVE_INTERVAL,
842
915
'blog_id' => get_current_blog_id(),
920
* Localizes the jQuery UI datepicker.
924
* @link http://api.jqueryui.com/datepicker/#options
926
* @global WP_Locale $wp_locale The WordPress date and time locale object.
928
function wp_localize_jquery_ui_datepicker() {
931
if ( ! wp_script_is( 'jquery-ui-datepicker', 'enqueued' ) ) {
935
// Convert the PHP date format into jQuery UI's format.
936
$datepicker_date_format = str_replace(
938
'd', 'j', 'l', 'z', // Day.
939
'F', 'M', 'n', 'm', // Month.
943
'dd', 'd', 'DD', 'o',
944
'MM', 'M', 'm', 'mm',
947
get_option( 'date_format' )
950
$datepicker_defaults = wp_json_encode( array(
951
'closeText' => __( 'Close' ),
952
'currentText' => __( 'Today' ),
953
'monthNames' => array_values( $wp_locale->month ),
954
'monthNamesShort' => array_values( $wp_locale->month_abbrev ),
955
'nextText' => __( 'Next' ),
956
'prevText' => __( 'Previous' ),
957
'dayNames' => array_values( $wp_locale->weekday ),
958
'dayNamesShort' => array_values( $wp_locale->weekday_abbrev ),
959
'dayNamesMin' => array_values( $wp_locale->weekday_initial ),
960
'dateFormat' => $datepicker_date_format,
961
'firstDay' => absint( get_option( 'start_of_week' ) ),
962
'isRTL' => $wp_locale->is_rtl(),
965
wp_add_inline_script( 'jquery-ui-datepicker', "jQuery(document).ready(function(jQuery){jQuery.datepicker.setDefaults({$datepicker_defaults});});" );