golden hour
/var/www/nanshen/wp-includes/js
⬆️ Go Up
Upload
File/Folder
Size
Actions
admin-bar.js
10.88 KB
Del
OK
admin-bar.min.js
6.61 KB
Del
OK
autosave.js
15.78 KB
Del
OK
autosave.min.js
5.23 KB
Del
OK
backbone.min.js
18.59 KB
Del
OK
colorpicker.js
28.4 KB
Del
OK
colorpicker.min.js
16.14 KB
Del
OK
comment-reply.js
1.2 KB
Del
OK
comment-reply.min.js
755 B
Del
OK
crop
-
Del
OK
customize-base.js
15.25 KB
Del
OK
customize-base.min.js
6.45 KB
Del
OK
customize-loader.js
4.18 KB
Del
OK
customize-loader.min.js
2.48 KB
Del
OK
customize-models.js
5.74 KB
Del
OK
customize-models.min.js
3.36 KB
Del
OK
customize-preview-widgets.js
3.64 KB
Del
OK
customize-preview-widgets.min.js
1.74 KB
Del
OK
customize-preview.js
3.48 KB
Del
OK
customize-preview.min.js
1.82 KB
Del
OK
customize-views.js
5.34 KB
Del
OK
customize-views.min.js
2.88 KB
Del
OK
heartbeat.js
18.52 KB
Del
OK
heartbeat.min.js
4.75 KB
Del
OK
hoverIntent.js
4.82 KB
Del
OK
hoverIntent.min.js
1.06 KB
Del
OK
imgareaselect
-
Del
OK
jcrop
-
Del
OK
jquery
-
Del
OK
json2.js
17 KB
Del
OK
json2.min.js
2.87 KB
Del
OK
masonry.min.js
30.31 KB
Del
OK
mce-view.js
17 KB
Del
OK
mce-view.min.js
7.01 KB
Del
OK
media-audiovideo.js
21.93 KB
Del
OK
media-audiovideo.min.js
11.92 KB
Del
OK
media-editor.js
27.87 KB
Del
OK
media-editor.min.js
9.46 KB
Del
OK
media-models.js
34.55 KB
Del
OK
media-models.min.js
11.46 KB
Del
OK
media-views.js
157.75 KB
Del
OK
media-views.min.js
78.25 KB
Del
OK
mediaelement
-
Del
OK
plupload
-
Del
OK
quicktags.js
18.61 KB
Del
OK
quicktags.min.js
8.83 KB
Del
OK
shortcode.js
10.21 KB
Del
OK
shortcode.min.js
2.49 KB
Del
OK
swfobject.js
9.99 KB
Del
OK
swfupload
-
Del
OK
thickbox
-
Del
OK
tinymce
-
Del
OK
tw-sack.js
4.85 KB
Del
OK
tw-sack.min.js
3.19 KB
Del
OK
underscore.min.js
13.98 KB
Del
OK
utils.js
3.98 KB
Del
OK
utils.min.js
1.67 KB
Del
OK
wp-ajax-response.js
3.04 KB
Del
OK
wp-ajax-response.min.js
2 KB
Del
OK
wp-auth-check.js
3.01 KB
Del
OK
wp-auth-check.min.js
1.61 KB
Del
OK
wp-backbone.js
10.17 KB
Del
OK
wp-backbone.min.js
2.93 KB
Del
OK
wp-list-revisions.js
914 B
Del
OK
wp-list-revisions.min.js
562 B
Del
OK
wp-lists.js
10.91 KB
Del
OK
wp-lists.min.js
7.13 KB
Del
OK
wp-pointer.js
6.45 KB
Del
OK
wp-pointer.min.js
3.53 KB
Del
OK
wp-util.js
3.08 KB
Del
OK
wp-util.min.js
977 B
Del
OK
wpdialog.js
435 B
Del
OK
wpdialog.min.js
237 B
Del
OK
wplink.js
14.66 KB
Del
OK
wplink.min.js
8.06 KB
Del
OK
zxcvbn-async.js
502 B
Del
OK
zxcvbn-async.min.js
317 B
Del
OK
zxcvbn.min.js
682.35 KB
Del
OK
Edit: wp-util.js
/* global _wpUtilSettings */ window.wp = window.wp || {}; (function ($) { // Check for the utility settings. var settings = typeof _wpUtilSettings === 'undefined' ? {} : _wpUtilSettings; /** * wp.template( id ) * * Fetches a template by id. * * @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, options = { evaluate: /<#([\s\S]+?)#>/g, interpolate: /\{\{\{([\s\S]+?)\}\}\}/g, escape: /\{\{([^\}]+?)\}\}(?!\})/g, variable: 'data' }; return function ( data ) { compiled = compiled || _.template( $( '#tmpl-' + id ).html(), null, 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} action The slug of the action to fire in WordPress. * @param {object} data The data to populate $_POST with. * @return {$.promise} A jQuery promise that represents the request. */ 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} action The slug of the action to fire in WordPress. * @param {object} options The options passed to jQuery.ajax. * @return {$.promise} A jQuery promise that represents the request. */ send: function( action, options ) { 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 }); return $.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() $.ajax( options ).done( function( response ) { // Treat a response of `1` as successful for backwards // compatibility with existing handlers. if ( response === '1' || response === 1 ) response = { success: true }; if ( _.isObject( response ) && ! _.isUndefined( response.success ) ) deferred[ response.success ? 'resolveWith' : 'rejectWith' ]( this, [response.data] ); else deferred.rejectWith( this, [response] ); }).fail( function() { deferred.rejectWith( this, arguments ); }); }).promise(); } }; }(jQuery));
Save