Submit
Path:
F:
/
Inetpub
/
vhosts
/
solasmarine.com.tr
/
httpdocs
/
wp-includes
/
js
/
File Content:
wp-util.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 ) { var el = document.querySelector( 'script#tmpl-' + id ); if ( ! el ) { throw new Error( 'Template not found: ' + '#tmpl-' + id ); } compiled = compiled || _.template( $( el ).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));
Edit
Rename
Chmod
Delete
FILE
DIR
INFO
CMD
Name
Size
Permission
Action
codemirror
---
0777
crop
---
0777
dist
---
0777
imgareaselect
---
0777
jcrop
---
0777
jquery
---
0777
mediaelement
---
0777
plupload
---
0777
swfupload
---
0777
thickbox
---
0777
tinymce
---
0777
admin-bar.js
10547bytes
0666
admin-bar.min.js
3487bytes
0666
api-request.js
3324bytes
0666
api-request.min.js
1023bytes
0666
autosave.js
22476bytes
0666
autosave.min.js
5807bytes
0666
backbone.js
80436bytes
0666
backbone.min.js
24314bytes
0666
clipboard.js
26807bytes
0666
clipboard.min.js
9009bytes
0666
colorpicker.js
29083bytes
0666
colorpicker.min.js
16498bytes
0666
comment-reply.js
12513bytes
0666
comment-reply.min.js
3026bytes
0666
customize-base.js
25822bytes
0666
customize-base.min.js
7852bytes
0666
customize-loader.js
7903bytes
0666
customize-loader.min.js
3551bytes
0666
customize-models.js
6821bytes
0666
customize-models.min.js
3681bytes
0666
customize-preview-nav-menus.js
15024bytes
0666
customize-preview-nav-menus.min.js
5033bytes
0666
customize-preview-widgets.js
23253bytes
0666
customize-preview-widgets.min.js
7820bytes
0666
customize-preview.js
28597bytes
0666
customize-preview.min.js
11011bytes
0666
customize-selective-refresh.js
33335bytes
0666
customize-selective-refresh.min.js
10693bytes
0666
customize-views.js
5222bytes
0666
customize-views.min.js
2567bytes
0666
heartbeat.js
24052bytes
0666
heartbeat.min.js
5947bytes
0666
hoverIntent.js
7225bytes
0666
hoverIntent.min.js
1499bytes
0666
hoverintent-js.min.js
1718bytes
0666
imagesloaded.min.js
5520bytes
0666
json2.js
31bytes
0666
json2.min.js
35bytes
0666
masonry.min.js
24138bytes
0666
mce-view.js
25849bytes
0666
mce-view.min.js
9770bytes
0666
media-audiovideo.js
24711bytes
0666
media-audiovideo.min.js
12043bytes
0666
media-editor.js
29460bytes
0666
media-editor.min.js
11092bytes
0666
media-grid.js
26673bytes
0666
media-grid.min.js
13285bytes
0666
media-models.js
43544bytes
0666
media-models.min.js
13279bytes
0666
media-views.js
272888bytes
0666
media-views.min.js
110657bytes
0666
quicktags.js
22601bytes
0666
quicktags.min.js
11132bytes
0666
shortcode.js
10758bytes
0666
shortcode.min.js
2643bytes
0666
swfobject.js
0bytes
0666
swfobject.min.js
35bytes
0666
tw-sack.js
4970bytes
0666
tw-sack.min.js
3288bytes
0666
twemoji.js
37190bytes
0666
twemoji.min.js
19858bytes
0666
underscore.js
68873bytes
0666
underscore.min.js
19012bytes
0666
utils.js
4665bytes
0666
utils.min.js
1864bytes
0666
wp-ajax-response.js
3903bytes
0666
wp-ajax-response.min.js
2571bytes
0666
wp-api.js
46983bytes
0666
wp-api.min.js
14682bytes
0666
wp-auth-check.js
4444bytes
0666
wp-auth-check.min.js
1689bytes
0666
wp-backbone.js
15241bytes
0666
wp-backbone.min.js
3039bytes
0666
wp-custom-header.js
10465bytes
0666
wp-custom-header.min.js
4442bytes
0666
wp-embed-template.js
6779bytes
0666
wp-embed-template.min.js
3174bytes
0666
wp-embed.js
3214bytes
0666
wp-embed.min.js
1251bytes
0666
wp-emoji-loader.js
13203bytes
0666
wp-emoji-loader.min.js
2890bytes
0666
wp-emoji-release.min.js
22762bytes
0666
wp-emoji.js
8792bytes
0666
wp-emoji.min.js
2855bytes
0666
wp-list-revisions.js
970bytes
0666
wp-list-revisions.min.js
597bytes
0666
wp-lists.js
25315bytes
0666
wp-lists.min.js
7521bytes
0666
wp-pointer.js
10233bytes
0666
wp-pointer.min.js
3621bytes
0666
wp-sanitize.js
1622bytes
0666
wp-sanitize.min.js
402bytes
0666
wp-util.js
4689bytes
0666
wp-util.min.js
1431bytes
0666
wpdialog.js
569bytes
0666
wpdialog.min.js
281bytes
0666
wplink.js
21240bytes
0666
wplink.min.js
11317bytes
0666
zxcvbn-async.js
821bytes
0666
zxcvbn-async.min.js
351bytes
0666
zxcvbn.min.js
822237bytes
0666