~canonical-sysadmins/wordpress/4.9.8

« back to all changes in this revision

Viewing changes to wp-includes/script-loader.php

  • Committer: Barry Price
  • Date: 2018-04-10 03:27:48 UTC
  • mfrom: (1.2.4 upstream)
  • Revision ID: barryprice@flollop-20180410032748-da232uugwx07f9m8
Merge WP4.9.5 from upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
130
130
        $scripts->add( 'wp-ajax-response', "/wp-includes/js/wp-ajax-response$suffix.js", array('jquery'), false, 1 );
131
131
        did_action( 'init' ) && $scripts->localize( 'wp-ajax-response', 'wpAjax', array(
132
132
                'noPerm' => __('Sorry, you are not allowed to do that.'),
133
 
                'broken' => __('An unidentified error has occurred.')
 
133
                'broken' => __('Something went wrong.')
134
134
        ) );
135
135
 
136
136
        $scripts->add( 'wp-api-request', "/wp-includes/js/api-request$suffix.js", array( 'jquery' ), false, 1 );
562
562
                'close'              => __( 'Close' ),
563
563
                'action'             => __( 'Action' ),
564
564
                'discardChanges'     => __( 'Discard changes' ),
565
 
                'cheatin'            => __( 'Cheatin’ uh?' ),
 
565
                'cheatin'            => __( 'Something went wrong.' ),
 
566
                'notAllowedHeading'  => __( 'You need a higher level of permission.' ),
566
567
                'notAllowed'         => __( 'Sorry, you are not allowed to customize this site.' ),
567
568
                'previewIframeTitle' => __( 'Site Preview' ),
568
569
                'loginIframeTitle'   => __( 'Session expired' ),
641
642
                $scripts->add( 'admin-tags', "/wp-admin/js/tags$suffix.js", array( 'jquery', 'wp-ajax-response' ), false, 1 );
642
643
                did_action( 'init' ) && $scripts->localize( 'admin-tags', 'tagsl10n', array(
643
644
                        'noPerm' => __('Sorry, you are not allowed to do that.'),
644
 
                        'broken' => __('An unidentified error has occurred.')
 
645
                        'broken' => __('Something went wrong.')
645
646
                ));
646
647
 
647
648
                $scripts->add( 'admin-comments', "/wp-admin/js/edit-comments$suffix.js", array('wp-lists', 'quicktags', 'jquery-query'), false, 1 );
835
836
                                'activateImporter'           => __( 'Run Importer' ),
836
837
                                /* translators: %s: Importer name */
837
838
                                'activateImporterLabel'      => __( 'Run %s' ),
838
 
                                'unknownError'               => __( 'An unidentified error has occurred.' ),
 
839
                                'unknownError'               => __( 'Something went wrong.' ),
839
840
                                'connectionError'            => __( 'Connection lost or the server is busy. Please try again later.' ),
840
841
                                'nonceError'                 => __( 'An error has occurred. Please reload the page and try again.' ),
841
842
                                'pluginsFound'               => __( 'Number of plugins found: %d' ),