Changeset 48168
- Timestamp:
- 06/25/2020 12:41:36 PM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/js/_enqueues/admin/custom-background.js
r46800 r48168 128 128 var attachment = frame.state().get('selection').first(); 129 129 130 // Run an A JAXrequest to set the background image.130 // Run an Ajax request to set the background image. 131 131 $.post( ajaxurl, { 132 132 action: 'set-background-image', -
trunk/src/js/_enqueues/admin/inline-edit-post.js
r48110 r48168 386 386 /** 387 387 * Saves the changes made in the quick edit window to the post. 388 * A JAXsaving is only for Quick Edit and not for bulk edit.388 * Ajax saving is only for Quick Edit and not for bulk edit. 389 389 * 390 390 * @since 2.7.0 -
trunk/src/js/_enqueues/admin/plugin-install.js
r47122 r48168 151 151 /* 152 152 * Open the Plugin details modal. The event is delegated to get also the links 153 * in the plugins search tab, after the A JAXsearch rebuilds the HTML. It's153 * in the plugins search tab, after the Ajax search rebuilds the HTML. It's 154 154 * delegated on the closest ancestor and not on the body to avoid conflicts 155 155 * with other handlers, see Trac ticket #43082. -
trunk/src/js/_enqueues/admin/post.js
r47122 r48168 30 30 31 31 /** 32 * Fetch comments using A JAXand display them in the box.32 * Fetch comments using Ajax and display them in the box. 33 33 * 34 34 * @memberof commentsBox … … 939 939 /** 940 940 * Handle the editing of the post_name. Create the required HTML elements and 941 * update the changes via A JAX.941 * update the changes via Ajax. 942 942 * 943 943 * @global -
trunk/src/js/_enqueues/admin/tags-box.js
r47122 r48168 285 285 * @since 2.9.0 286 286 * 287 * @param {number|string} r The response message from the A JAXcall.288 * @param {string} stat The status of the A JAXrequest.287 * @param {number|string} r The response message from the Ajax call. 288 * @param {string} stat The status of the Ajax request. 289 289 * 290 290 * @return {void} -
trunk/src/js/_enqueues/deprecated/media-gallery.js
r47164 r48168 24 24 25 25 /** 26 * This A JAXaction has been deprecated since 3.5.0, see custom-background.php26 * This Ajax action has been deprecated since 3.5.0, see custom-background.php 27 27 */ 28 28 jQuery.post(ajaxurl, { -
trunk/src/js/_enqueues/lib/lists.js
r48110 r48168 295 295 296 296 /** 297 * Adds an item to the list via A JAX.297 * Adds an item to the list via Ajax. 298 298 * 299 299 * @param {HTMLElement} element The DOM element. … … 397 397 398 398 /** 399 * Delete an item in the list via A JAX.399 * Delete an item in the list via Ajax. 400 400 * 401 401 * @param {HTMLElement} element A DOM element containing item data. … … 484 484 485 485 /** 486 * Dim an item in the list via A JAX.486 * Dim an item in the list via Ajax. 487 487 * 488 488 * @param {HTMLElement} element A DOM element containing item data. -
trunk/src/js/_enqueues/lib/nav-menu.js
r48110 r48168 921 921 922 922 /* 923 * Minimum characters for a search. Also avoid a new A JAXsearch when923 * Minimum characters for a search. Also avoid a new Ajax search when 924 924 * the pressed key (e.g. arrows) doesn't change the searched term. 925 925 */ -
trunk/src/js/_enqueues/vendor/plupload/handlers.js
r47122 r48168 149 149 jQuery( '.filename.original', item ).replaceWith( jQuery( '.filename.new', item ) ); 150 150 151 // Bind A JAXto the new Delete button.151 // Bind Ajax to the new Delete button. 152 152 jQuery( 'a.delete', item ).click( function(){ 153 153 // Tell the server to delete it. TODO: Handle exceptions. … … 167 167 }); 168 168 169 // Bind A JAXto the new Undo button.169 // Bind Ajax to the new Undo button. 170 170 jQuery( 'a.undo', item ).click( function(){ 171 171 // Tell the server to untrash it. TODO: Handle exceptions. -
trunk/src/js/_enqueues/wp/customize/controls.js
r47122 r48168 4441 4441 /** 4442 4442 * Callback handler for when an attachment is selected in the media modal. 4443 * Does an additional A JAXrequest for setting the background context.4443 * Does an additional Ajax request for setting the background context. 4444 4444 */ 4445 4445 select: function() { -
trunk/src/js/_enqueues/wp/customize/models.js
r47122 r48168 14 14 * 15 15 * A header image. This is where saves via the Customizer API are 16 * abstracted away, plus our own A JAXcalls to add images to and remove16 * abstracted away, plus our own Ajax calls to add images to and remove 17 17 * images from the user's recently uploaded images setting on the server. 18 18 * These calls are made regardless of whether the user actually saves new -
trunk/src/js/_enqueues/wp/dashboard.js
r46800 r48168 65 65 66 66 /** 67 * Triggers widget updates via A JAX.67 * Triggers widget updates via Ajax. 68 68 * 69 69 * @since 2.7.0 … … 104 104 if ( el ) { 105 105 el = el.toString(); 106 // If the element is available as A JAXwidget, show it.106 // If the element is available as Ajax widget, show it. 107 107 if ( $.inArray(el, ajaxWidgets) !== -1 ) { 108 108 // Show element without any delay. -
trunk/src/js/_enqueues/wp/heartbeat.js
r47122 r48168 69 69 originalInterval: 0, 70 70 71 // Used to limit the number of A JAXrequests.71 // Used to limit the number of Ajax requests. 72 72 minimalInterval: 0, 73 73 … … 147 147 148 148 /* 149 * Used to limit the number of A JAXrequests. Overrides all other intervals149 * Used to limit the number of Ajax requests. Overrides all other intervals 150 150 * if they are shorter. Needed for some hosts that cannot handle frequent requests 151 151 * and the user may exceed the allocated server CPU time, etc. The minimal interval -
trunk/src/js/_enqueues/wp/updates.js
r48092 r48168 12 12 * @param {object} wp WP object. 13 13 * @param {object} settings WP Updates settings. 14 * @param {string} settings.ajax_nonce A JAXnonce.14 * @param {string} settings.ajax_nonce Ajax nonce. 15 15 * @param {object=} settings.plugins Base names of plugins in their different states. 16 16 * @param {Array} settings.plugins.all Base names of all plugins. … … 1532 1532 * @private 1533 1533 * 1534 * @param {object} data A JAXpayload.1534 * @param {object} data Ajax payload. 1535 1535 * @param {string} action The type of request to perform. 1536 * @return {object} The A JAXpayload with the appropriate callbacks.1536 * @return {object} The Ajax payload with the appropriate callbacks. 1537 1537 */ 1538 1538 wp.updates._addCallbacks = function( data, action ) { … … 1770 1770 1771 1771 /** 1772 * Validates an A JAXresponse to ensure it's a proper object.1772 * Validates an Ajax response to ensure it's a proper object. 1773 1773 * 1774 1774 * If the response deems to be invalid, an admin notice is being displayed. -
trunk/src/js/media/models/attachments.js
r47122 r48168 357 357 }, 358 358 /** 359 * A custom A JAX-response parser.359 * A custom Ajax-response parser. 360 360 * 361 361 * See trac ticket #24753 -
trunk/src/wp-admin/includes/ajax-actions.php
r48154 r48168 332 332 333 333 /** 334 * Handles A JAXrequests for community events334 * Handles Ajax requests for community events 335 335 * 336 336 * @since 4.8.0 -
trunk/src/wp-admin/includes/class-wp-site-health.php
r48121 r48168 179 179 * Run the SQL version checks. 180 180 * 181 * These values are used in later tests, but the part of preparing them is more easily managed early182 * in the class for ease of access and discovery.181 * These values are used in later tests, but the part of preparing them is more easily managed 182 * early in the class for ease of access and discovery. 183 183 * 184 184 * @since 5.2.0 … … 213 213 * Test if `wp_version_check` is blocked. 214 214 * 215 * It's possible to block updates with the `wp_version_check` filter, but this can't be checked during an216 * AJAXcall, as the filter is never introduced then.217 * 218 * This filter overrides a normal page request if it's made by an admin through the A JAX call with the219 * right query argument to check for this.215 * It's possible to block updates with the `wp_version_check` filter, but this can't be checked 216 * during an Ajax call, as the filter is never introduced then. 217 * 218 * This filter overrides a normal page request if it's made by an admin through the Ajax call 219 * with the right query argument to check for this. 220 220 * 221 221 * @since 5.2.0 … … 234 234 * Tests for WordPress version and outputs it. 235 235 * 236 * Gives various results depending on what kind of updates are available, if any, to encourage the237 * user to install security updates as a priority.236 * Gives various results depending on what kind of updates are available, if any, to encourage 237 * the user to install security updates as a priority. 238 238 * 239 239 * @since 5.2.0 … … 335 335 * Test if plugins are outdated, or unnecessary. 336 336 * 337 * The tests checks if your plugins are up to date, and encourages you to remove any that are not in use. 337 * The tests checks if your plugins are up to date, and encourages you to remove any 338 * that are not in use. 338 339 * 339 340 * @since 5.2.0 … … 466 467 * Test if themes are outdated, or unnecessary. 467 468 * 468 * The tests checks if your site has a default theme (to fall back on if there is a need), if your themes 469 * are up to date and, finally, encourages you to remove any themes that are not needed. 469 * Сhecks if your site has a default theme (to fall back on if there is a need), 470 * if your themes are up to date and, finally, encourages you to remove any themes 471 * that are not needed. 470 472 * 471 473 * @since 5.2.0 … … 1409 1411 * Test if debug information is enabled. 1410 1412 * 1411 * When WP_DEBUG is enabled, errors and information may be disclosed to site visitors, or it may be1412 * logged to a publicly accessible file.1413 * 1414 * Debugging is also frequently left enabled after looking for errors on a site, as site owners do1415 * not understand the implications of this.1413 * When WP_DEBUG is enabled, errors and information may be disclosed to site visitors, 1414 * or logged to a publicly accessible file. 1415 * 1416 * Debugging is also frequently left enabled after looking for errors on a site, 1417 * as site owners do not understand the implications of this. 1416 1418 * 1417 1419 * @since 5.2.0 … … 1590 1592 * Test if scheduled events run as intended. 1591 1593 * 1592 * If scheduled events are not running, this may indicate something with WP_Cron is not working as intended,1593 * or that there are orphaned events hanging around from older code.1594 * If scheduled events are not running, this may indicate something with WP_Cron is not working 1595 * as intended, or that there are orphaned events hanging around from older code. 1594 1596 * 1595 1597 * @since 5.2.0 … … 1662 1664 * Test if WordPress can run automated background updates. 1663 1665 * 1664 * Background updates in WordPress are primarily used for minor releases and security updates. It's important 1665 * to either have these working, or be aware that they are intentionally disabled for whatever reason. 1666 * Background updates in WordPress are primarily used for minor releases and security updates. 1667 * It's important to either have these working, or be aware that they are intentionally disabled 1668 * for whatever reason. 1666 1669 * 1667 1670 * @since 5.2.0 … … 1735 1738 * Test if loopbacks work as expected. 1736 1739 * 1737 * A loopback is when WordPress queries itself, for example to start a new WP_Cron instance, or when editing a 1738 * plugin or theme. This has shown itself to be a recurring issue as code can very easily break this interaction. 1740 * A loopback is when WordPress queries itself, for example to start a new WP_Cron instance, 1741 * or when editing a plugin or theme. This has shown itself to be a recurring issue, 1742 * as code can very easily break this interaction. 1739 1743 * 1740 1744 * @since 5.2.0 … … 2064 2068 * @param array $test_type { 2065 2069 * An associative array, where the `$test_type` is either `direct` or 2066 * `async`, to declare if the test should run via A JAXcalls after page load.2070 * `async`, to declare if the test should run via Ajax calls after page load. 2067 2071 * 2068 2072 * @type array $identifier { … … 2072 2076 * 2073 2077 * @type string $label A friendly label for your test to identify it by. 2074 * @type mixed $test A callable to perform a direct test, or a string A JAXaction to be called2078 * @type mixed $test A callable to perform a direct test, or a string Ajax action to be called 2075 2079 * to perform an async test. 2076 2080 * } … … 2149 2153 * Check if any scheduled tasks have been missed. 2150 2154 * 2151 * Returns a boolean value of `true` if a scheduled task has been missed and ends processing. If the list of 2152 * crons is an instance of WP_Error, return the instance instead of a boolean value. 2155 * Returns a boolean value of `true` if a scheduled task has been missed and ends processing. 2156 * 2157 * If the list of crons is an instance of WP_Error, return the instance instead of a boolean value. 2153 2158 * 2154 2159 * @since 5.2.0 … … 2174 2179 * Check if any scheduled tasks are late. 2175 2180 * 2176 * Returns a boolean value of `true` if a scheduled task is late and ends processing. If the list of 2177 * crons is an instance of WP_Error, return the instance instead of a boolean value. 2181 * Returns a boolean value of `true` if a scheduled task is late and ends processing. 2182 * 2183 * If the list of crons is an instance of WP_Error, return the instance instead of a boolean value. 2178 2184 * 2179 2185 * @since 5.3.0 -
trunk/src/wp-admin/includes/template.php
r48152 r48168 537 537 <div class="trash-undo-inside"> 538 538 <?php 539 /* translators: %s: Comment author, filled by A JAX. */539 /* translators: %s: Comment author, filled by Ajax. */ 540 540 printf( __( 'Comment by %s moved to the Trash.' ), '<strong></strong>' ); 541 541 ?> … … 546 546 <div class="spam-undo-inside"> 547 547 <?php 548 /* translators: %s: Comment author, filled by A JAX. */548 /* translators: %s: Comment author, filled by Ajax. */ 549 549 printf( __( 'Comment by %s marked as spam.' ), '<strong></strong>' ); 550 550 ?> -
trunk/src/wp-includes/functions.php
r48126 r48168 3576 3576 */ 3577 3577 function _ajax_wp_die_handler( $message, $title = '', $args = array() ) { 3578 // Set default 'response' to 200 for A JAXrequests.3578 // Set default 'response' to 200 for Ajax requests. 3579 3579 $args = wp_parse_args( 3580 3580 $args, -
trunk/src/wp-includes/load.php
r48115 r48168 892 892 } 893 893 894 // Protect A JAXactions that could help resolve a fatal error should be available.894 // Protect Ajax actions that could help resolve a fatal error should be available. 895 895 if ( is_protected_ajax_action() ) { 896 896 return true; … … 902 902 * This filter is only fired when an endpoint is requested which is not already protected by 903 903 * WordPress core. As such, it exclusively allows providing further protected endpoints in 904 * addition to the admin backend, login pages and protected A JAXactions.904 * addition to the admin backend, login pages and protected Ajax actions. 905 905 * 906 906 * @since 5.2.0 907 907 * 908 * @param bool $is_protected_endpoint Whether the currently requested endpoint is protected. Default false. 908 * @param bool $is_protected_endpoint Whether the currently requested endpoint is protected. 909 * Default false. 909 910 */ 910 911 return (bool) apply_filters( 'is_protected_endpoint', false ); … … 912 913 913 914 /** 914 * Determines whether we are currently handling an A JAXaction that should be protected against WSODs.915 * Determines whether we are currently handling an Ajax action that should be protected against WSODs. 915 916 * 916 917 * @since 5.2.0 917 918 * 918 * @return bool True if the current A JAXaction should be protected.919 * @return bool True if the current Ajax action should be protected. 919 920 */ 920 921 function is_protected_ajax_action() { … … 939 940 940 941 /** 941 * Filters the array of protected A JAXactions.942 * 943 * This filter is only fired when doing A JAX and the AJAXrequest has an 'action' property.942 * Filters the array of protected Ajax actions. 943 * 944 * This filter is only fired when doing Ajax and the Ajax request has an 'action' property. 944 945 * 945 946 * @since 5.2.0 946 947 * 947 * @param string[] $actions_to_protect Array of strings with A JAXactions to protect.948 * @param string[] $actions_to_protect Array of strings with Ajax actions to protect. 948 949 */ 949 950 $actions_to_protect = (array) apply_filters( 'wp_protected_ajax_actions', $actions_to_protect );
Note: See TracChangeset
for help on using the changeset viewer.