WordPress/wp-includes/js
Sergey Biryukov 47ed56f38f Code Modernization: Replace `dirname( __FILE__ )` calls with `__DIR__` magic constant.
This avoids the performance overhead of the function call every time `dirname( __FILE__ )` was used instead of `__DIR__`.

This commit also includes:

* Removing unnecessary parentheses from `include`/`require` statements. These are language constructs, not function calls.
* Replacing `include` statements for several files with `require_once`, for consistency:
 * `wp-admin/admin-header.php`
 * `wp-admin/admin-footer.php`
 * `wp-includes/version.php`

Props ayeshrajans, desrosj, valentinbora, jrf, joostdevalk, netweb.
Fixes #48082.
Built from https://develop.svn.wordpress.org/trunk@47198


git-svn-id: http://core.svn.wordpress.org/trunk@46998 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2020-02-06 06:33:11 +00:00
..
codemirror Ensure `svn:eol-style` is consistently set for all files. 2019-10-25 16:38:07 +00:00
crop
dist Block Editor: Update WordPress Packages. 2020-01-22 22:06:21 +00:00
imgareaselect Docs: Update broken source code link in `imgAreaSelect` jQuery plugin. 2019-11-17 16:14:03 +00:00
jcrop
jquery Build/Test: Update Grunt Uglify options 2019-10-05 22:01:04 +00:00
mediaelement I18N: Synchronize MediaElement.js translation strings with the currently bundled version. 2020-01-21 02:21:05 +00:00
plupload Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
swfupload Remove SWFUpload, 2017-09-21 16:35:48 +00:00
thickbox Administration: Thickbox: Fix conflicts with the Plugin details and native Thickbox modals. 2017-09-09 14:14:43 +00:00
tinymce Code Modernization: Replace `dirname( __FILE__ )` calls with `__DIR__` magic constant. 2020-02-06 06:33:11 +00:00
admin-bar.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
admin-bar.min.js Fixes in `admin-bar.js`: 2019-12-11 18:56:03 +00:00
api-request.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
api-request.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
autosave.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
autosave.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
backbone.js External Libraries: Update Backbone.js to 1.4.0. 2019-09-17 17:19:54 +00:00
backbone.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
clipboard.js Site Health: Improve the "Copy to clipboard" button. 2019-03-27 22:31:52 +00:00
clipboard.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
colorpicker.js
colorpicker.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
comment-reply.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
comment-reply.min.js Comments: Check if comment form element exists before adding a key handler to detect the cmd/ctrl-enter key press. 2019-11-11 11:51:03 +00:00
customize-base.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
customize-base.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
customize-loader.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
customize-loader.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
customize-models.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
customize-models.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
customize-preview-nav-menus.js Docs: Replace `@returns` tags in JS docs with `@return`. 2019-11-29 18:01:03 +00:00
customize-preview-nav-menus.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
customize-preview-widgets.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
customize-preview-widgets.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
customize-preview.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
customize-preview.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
customize-selective-refresh.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
customize-selective-refresh.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
customize-views.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
customize-views.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
heartbeat.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
heartbeat.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
hoverIntent.js Once upon a midnight dreary, while I coded, weak and weary, 2018-05-23 10:05:31 +00:00
hoverIntent.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
hoverintent-js.min.js Fix the admin toolbar js when jQuery is not present and replace the jQuery based hoverIntent.js with a native implementation. Introduces the "hoverintent" (no dependencies) package. 2019-12-10 01:03:02 +00:00
imagesloaded.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
json2.js External Libraries: update `json2.js` to the `2015-05-03` version. Crockford does not tag releases: https://github.com/douglascrockford/JSON-js/commits/master 2015-10-06 14:02:25 +00:00
json2.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
masonry.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
mce-view.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
mce-view.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
media-audiovideo.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
media-audiovideo.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
media-editor.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
media-editor.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
media-grid.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
media-grid.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
media-models.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
media-models.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
media-views.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
media-views.min.js Coding Standards: Move assignment out of condition in `js/media/controllers/library.js`. 2020-01-02 12:07:02 +00:00
quicktags.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
quicktags.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
shortcode.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
shortcode.min.js Shortcodes: Make sure `wp.shortcode.string()` accepts the `attrs` array keys in any order. 2019-12-21 18:34:04 +00:00
swfobject.js
tw-sack.js
tw-sack.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
twemoji.js Emoji: Upgrade Twemoji to 12.1.3. 2019-11-05 22:04:02 +00:00
twemoji.min.js Emoji: Upgrade Twemoji to 12.1.3. 2019-11-05 22:04:02 +00:00
underscore.js External Libraries: Revert [46092] pending test failure investigation. 2019-09-12 10:19:59 +00:00
underscore.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
utils.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
utils.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
wp-ajax-response.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
wp-ajax-response.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
wp-api.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
wp-api.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
wp-auth-check.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
wp-auth-check.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
wp-backbone.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
wp-backbone.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
wp-custom-header.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
wp-custom-header.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
wp-embed-template.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
wp-embed-template.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
wp-embed.js Embeds: After [43593], move the new check to a separate line to avoid `test_js_no_ampersands_in_compiled` failure caused by UglifyJS task. 2018-08-30 12:40:26 +00:00
wp-embed.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
wp-emoji-loader.js Emoji: Upgrade Twemoji to 12.1.2. 2019-08-08 04:05:55 +00:00
wp-emoji-loader.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
wp-emoji-release.min.js Emoji: Upgrade Twemoji to 12.1.3. 2019-11-05 22:04:02 +00:00
wp-emoji.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
wp-emoji.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
wp-list-revisions.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
wp-list-revisions.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
wp-lists.js Docs: Replace `@returns` tags in JS docs with `@return`. 2019-11-29 18:01:03 +00:00
wp-lists.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
wp-pointer.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
wp-pointer.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
wp-sanitize.js Update wp.a11y.speak() to sanitize HTML before display. 2019-09-04 17:13:21 +00:00
wp-sanitize.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
wp-util.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
wp-util.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
wpdialog.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
wpdialog.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
wplink.js Docs: Improve inline comments per the documentation standards. 2020-01-29 00:45:18 +00:00
wplink.min.js I18N: Make the minimum input length to start searching posts in the "Insert/edit link" modal localizable. 2019-12-18 01:15:03 +00:00
zxcvbn-async.js Docs: Add file doc `@output` annotations. 2018-06-28 02:30:15 +00:00
zxcvbn-async.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00
zxcvbn.min.js Build/Test Tools: Add banner to RTL CSS and minified JS files. 2019-10-26 00:17:07 +00:00