diff options
Diffstat (limited to 'src/js/_enqueues/wp/util.js')
-rw-r--r-- | src/js/_enqueues/wp/util.js | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/js/_enqueues/wp/util.js b/src/js/_enqueues/wp/util.js index 836d0016f2..5bb0a6b3ae 100644 --- a/src/js/_enqueues/wp/util.js +++ b/src/js/_enqueues/wp/util.js @@ -41,11 +41,13 @@ window.wp = window.wp || {}; }; }); - // wp.ajax - // ------ - // - // Tools for sending ajax requests with JSON responses and built in error handling. - // Mirrors and wraps jQuery's ajax APIs. + /* + * wp.ajax + * ------ + * + * Tools for sending ajax requests with JSON responses and built in error handling. + * Mirrors and wraps jQuery's ajax APIs. + */ wp.ajax = { settings: settings.ajax || {}, @@ -105,7 +107,7 @@ window.wp = window.wp || {}; delete options.success; delete options.error; - // Use with PHP's wp_send_json_success() and wp_send_json_error() + // Use with PHP's wp_send_json_success() and wp_send_json_error(). deferred.jqXHR = $.ajax( options ).done( function( response ) { // Treat a response of 1 as successful for backward compatibility with existing handlers. if ( response === '1' || response === 1 ) { |