PATH:
var
/
www
/
clients
/
client1
/
web1
/
web
/
wp-includes
/
js
/** * @output wp-includes/js/wp-util.js */ /* global _wpUtilSettings */ /** @namespace wp */ window.wp = window.wp || {}; (function ($) { // Check for the utility settings. var settings = typeof _wpUtilSettings === 'undefined' ? {} : _wpUtilSettings; /** * wp.template( id ) * * Fetch a JavaScript template for an id, and return a templating function for it. * * @param {string} id A string that corresponds to a DOM element with an id prefixed with "tmpl-". * For example, "attachment" maps to "tmpl-attachment". * @return {function} A function that lazily-compiles the template requested. */ wp.template = _.memoize(function ( id ) { var compiled, /* * Underscore's default ERB-style templates are incompatible with PHP * when asp_tags is enabled, so WordPress uses Mustache-inspired templating syntax. * * @see trac ticket #22344. */ options = { evaluate: /<#([\s\S]+?)#>/g, interpolate: /\{\{\{([\s\S]+?)\}\}\}/g, escape: /\{\{([^\}]+?)\}\}(?!\})/g, variable: 'data' }; return function ( data ) { if ( ! document.getElementById( 'tmpl-' + id ) ) { throw new Error( 'Template not found: ' + '#tmpl-' + id ); } compiled = compiled || _.template( $( '#tmpl-' + id ).html(), options ); return compiled( data ); }; }); /* * 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 || {}, /** * wp.ajax.post( [action], [data] ) * * Sends a POST request to WordPress. * * @param {(string|Object)} action The slug of the action to fire in WordPress or options passed * to jQuery.ajax. * @param {Object=} data Optional. The data to populate $_POST with. * @return {$.promise} A jQuery promise that represents the request, * decorated with an abort() method. */ post: function( action, data ) { return wp.ajax.send({ data: _.isObject( action ) ? action : _.extend( data || {}, { action: action }) }); }, /** * wp.ajax.send( [action], [options] ) * * Sends a POST request to WordPress. * * @param {(string|Object)} action The slug of the action to fire in WordPress or options passed * to jQuery.ajax. * @param {Object=} options Optional. The options passed to jQuery.ajax. * @return {$.promise} A jQuery promise that represents the request, * decorated with an abort() method. */ send: function( action, options ) { var promise, deferred; if ( _.isObject( action ) ) { options = action; } else { options = options || {}; options.data = _.extend( options.data || {}, { action: action }); } options = _.defaults( options || {}, { type: 'POST', url: wp.ajax.settings.url, context: this }); deferred = $.Deferred( function( deferred ) { // Transfer success/error callbacks. if ( options.success ) { deferred.done( options.success ); } if ( options.error ) { deferred.fail( options.error ); } delete options.success; delete options.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 ) { response = { success: true }; } if ( _.isObject( response ) && ! _.isUndefined( response.success ) ) { // When handling a media attachments request, get the total attachments from response headers. var context = this; deferred.done( function() { if ( action && action.data && 'query-attachments' === action.data.action && deferred.jqXHR.hasOwnProperty( 'getResponseHeader' ) && deferred.jqXHR.getResponseHeader( 'X-WP-Total' ) ) { context.totalAttachments = parseInt( deferred.jqXHR.getResponseHeader( 'X-WP-Total' ), 10 ); } else { context.totalAttachments = 0; } } ); deferred[ response.success ? 'resolveWith' : 'rejectWith' ]( this, [response.data] ); } else { deferred.rejectWith( this, [response] ); } }).fail( function() { deferred.rejectWith( this, arguments ); }); }); promise = deferred.promise(); promise.abort = function() { deferred.jqXHR.abort(); return this; }; return promise; } }; }(jQuery));
[-] wp-backbone.js
[edit]
[-] wp-pointer.js
[edit]
[-] media-views.min.js
[edit]
[-] wp-custom-header.js
[edit]
[-] underscore.js
[edit]
[-] api-request.min.js
[edit]
[-] media-grid.js
[edit]
[-] underscore.min.js
[edit]
[-] wp-embed-template.min.js
[edit]
[-] media-models.min.js
[edit]
[-] admin-bar.min.js
[edit]
[-] twemoji.js
[edit]
[-] backbone.min.js
[edit]
[-] wplink.min.js
[edit]
[-] admin-bar.js
[edit]
[-] clipboard.js
[edit]
[-] customize-models.js
[edit]
[-] mce-view.min.js
[edit]
[-] wp-util.min.js
[edit]
[+]
dist
[-] customize-views.js
[edit]
[-] wp-emoji-release.min.js
[edit]
[-] clipboard.min.js
[edit]
[-] json2.min.js
[edit]
[-] customize-models.min.js
[edit]
[-] wp-list-revisions.js
[edit]
[-] comment-reply.min.js
[edit]
[-] customize-loader.js
[edit]
[-] wpdialog.min.js
[edit]
[-] wp-lists.js
[edit]
[-] twemoji.min.js
[edit]
[-] customize-preview.js
[edit]
[-] autosave.js
[edit]
[-] wp-list-revisions.min.js
[edit]
[-] wp-emoji.min.js
[edit]
[-] wp-api.js
[edit]
[-] tw-sack.js
[edit]
[-] media-audiovideo.js
[edit]
[-] wp-api.min.js
[edit]
[-] media-models.js
[edit]
[-] autosave.min.js
[edit]
[-] customize-preview-widgets.js
[edit]
[-] quicktags.min.js
[edit]
[-] wplink.js
[edit]
[-] customize-base.js
[edit]
[+]
jcrop
[-] zxcvbn.min.js
[edit]
[+]
plupload
[-] heartbeat.js
[edit]
[-] swfobject.js
[edit]
[-] quicktags.js
[edit]
[-] wp-lists.min.js
[edit]
[-] json2.js
[edit]
[-] wp-embed-template.js
[edit]
[-] utils.js
[edit]
[-] mce-view.js
[edit]
[-] wp-backbone.min.js
[edit]
[-] media-grid.min.js
[edit]
[-] wp-auth-check.min.js
[edit]
[-] wp-sanitize.js
[edit]
[-] media-audiovideo.min.js
[edit]
[-] customize-selective-refresh.js
[edit]
[+]
mediaelement
[-] wp-pointer.min.js
[edit]
[-] backbone.js
[edit]
[-] customize-preview-nav-menus.min.js
[edit]
[-] zxcvbn-async.min.js
[edit]
[-] tw-sack.min.js
[edit]
[-] customize-preview-widgets.min.js
[edit]
[-] customize-selective-refresh.min.js
[edit]
[+]
swfupload
[+]
crop
[-] wp-sanitize.min.js
[edit]
[+]
tinymce
[-] wp-ajax-response.min.js
[edit]
[-] wp-emoji.js
[edit]
[-] utils.min.js
[edit]
[-] comment-reply.js
[edit]
[-] colorpicker.js
[edit]
[-] wp-auth-check.js
[edit]
[-] masonry.min.js
[edit]
[-] wp-embed.min.js
[edit]
[-] wpdialog.js
[edit]
[+]
..
[-] media-editor.min.js
[edit]
[+]
jquery
[-] hoverIntent.min.js
[edit]
[-] media-views.js
[edit]
[-] heartbeat.min.js
[edit]
[-] shortcode.js
[edit]
[-] imagesloaded.min.js
[edit]
[-] customize-preview.min.js
[edit]
[-] customize-views.min.js
[edit]
[-] swfobject.min.js
[edit]
[+]
thickbox
[-] zxcvbn-async.js
[edit]
[-] shortcode.min.js
[edit]
[-] api-request.js
[edit]
[-] customize-loader.min.js
[edit]
[-] wp-util.js
[edit]
[-] wp-ajax-response.js
[edit]
[+]
codemirror
[-] wp-emoji-loader.min.js
[edit]
[-] wp-custom-header.min.js
[edit]
[+]
imgareaselect
[-] hoverIntent.js
[edit]
[-] wp-emoji-loader.js
[edit]
[-] customize-base.min.js
[edit]
[-] media-editor.js
[edit]
[-] hoverintent-js.min.js
[edit]
[-] customize-preview-nav-menus.js
[edit]
[-] wp-embed.js
[edit]
[-] colorpicker.min.js
[edit]