at path๏ผ
ROOT
/
wp-includes
/
js
/
customize-models.js
run๏ผ
R
W
Run
codemirror
DIR
2025-10-18 22:53:01
R
W
Run
crop
DIR
2025-10-18 22:53:01
R
W
Run
dist
DIR
2025-10-18 22:53:02
R
W
Run
imgareaselect
DIR
2025-10-18 22:53:02
R
W
Run
jcrop
DIR
2025-10-18 22:53:02
R
W
Run
jquery
DIR
2025-10-18 22:53:02
R
W
Run
mediaelement
DIR
2025-10-18 22:53:03
R
W
Run
plupload
DIR
2025-10-18 22:53:03
R
W
Run
swfupload
DIR
2025-10-18 22:53:03
R
W
Run
thickbox
DIR
2025-10-18 22:53:03
R
W
Run
tinymce
DIR
2025-10-18 22:53:03
R
W
Run
admin-bar.js
10.3 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
admin-bar.min.js
3.41 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
api-request.js
3.25 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
api-request.min.js
1023 By
2025-10-18 22:56:59
R
W
Run
Delete
Rename
autosave.js
21.95 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
autosave.min.js
5.67 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
backbone.js
78.51 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
backbone.min.js
23.73 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
bottom.1768795088.php
0 By
2026-01-19 08:29:08
R
W
Run
Delete
Rename
clipboard.js
26.18 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
clipboard.min.js
8.8 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
colorpicker.js
28.4 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
colorpicker.min.js
16.11 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
comment-reply.js
12.22 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
comment-reply.min.js
2.96 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
customize-base.js
25.22 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
customize-base.min.js
7.67 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
customize-loader.js
7.72 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
customize-loader.min.js
3.47 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
customize-models.js
6.66 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
customize-models.min.js
3.59 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
customize-preview-nav-menus.js
14.67 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
customize-preview-nav-menus.min.js
4.92 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
customize-preview-widgets.js
22.71 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
customize-preview-widgets.min.js
7.64 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
customize-preview.js
27.3 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
customize-preview.min.js
10.45 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
customize-selective-refresh.js
32.55 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
customize-selective-refresh.min.js
10.44 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
customize-views.js
4.95 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
customize-views.min.js
2.39 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
heartbeat.js
23.49 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
heartbeat.min.js
5.81 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
hoverIntent.js
7.06 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
hoverIntent.min.js
1.46 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
hoverintent-js.min.js
1.68 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
imagesloaded.min.js
5.39 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
json2.js
17.99 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
json2.min.js
3.07 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
masonry.min.js
23.57 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
mce-view.js
25.24 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
mce-view.min.js
9.54 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
media-audiovideo.js
24.24 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
media-audiovideo.min.js
11.77 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
media-editor.js
28.44 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
media-editor.min.js
10.63 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
media-grid.js
26.03 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
media-grid.min.js
12.95 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
media-models.js
42.58 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
media-models.min.js
12.97 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
media-views.js
266.92 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
media-views.min.js
108.12 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
quicktags.js
22.07 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
quicktags.min.js
10.87 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
shortcode.js
10.51 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
shortcode.min.js
2.58 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
swfobject.js
9.99 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
tw-sack.js
4.85 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
tw-sack.min.js
3.21 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
twemoji.js
32.67 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
twemoji.min.js
15.93 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
underscore.js
67.12 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
underscore.min.js
18.46 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
utils.js
4.56 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
utils.min.js
1.82 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-ajax-response.js
3.81 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-ajax-response.min.js
2.51 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-api.js
45.88 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-api.min.js
14.34 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-auth-check.js
4.11 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-auth-check.min.js
1.62 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-backbone.js
14.88 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-backbone.min.js
2.97 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-custom-header.js
10.22 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-custom-header.min.js
4.34 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-embed-template.js
6.62 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-embed-template.min.js
3.1 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-embed.js
3.14 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-embed.min.js
1.22 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-emoji-loader.js
13.68 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-emoji-loader.min.js
3.02 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-emoji-release.min.js
18.8 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-emoji.js
8.76 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-emoji.min.js
2.82 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-list-revisions.js
970 By
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-list-revisions.min.js
597 By
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-lists.js
24.72 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-lists.min.js
7.34 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-pointer.js
9.99 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-pointer.min.js
3.54 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-sanitize.js
1.31 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-sanitize.min.js
458 By
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-util.js
4.57 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wp-util.min.js
1.39 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wpdialog.js
569 By
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wpdialog.min.js
281 By
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wplink.js
20.74 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
wplink.min.js
11.05 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
zxcvbn-async.js
821 By
2025-10-18 22:56:59
R
W
Run
Delete
Rename
zxcvbn-async.min.js
351 By
2025-10-18 22:56:59
R
W
Run
Delete
Rename
zxcvbn.min.js
802.97 KB
2025-10-18 22:56:59
R
W
Run
Delete
Rename
error_log
up
๐
customize-models.js
Save
/** * @output wp-includes/js/customize-models.js */ /* global _wpCustomizeHeader */ (function( $, wp ) { var api = wp.customize; /** @namespace wp.customize.HeaderTool */ api.HeaderTool = {}; /** * wp.customize.HeaderTool.ImageModel * * A header image. This is where saves via the Customizer API are * abstracted away, plus our own Ajax calls to add images to and remove * images from the user's recently uploaded images setting on the server. * These calls are made regardless of whether the user actually saves new * Customizer settings. * * @memberOf wp.customize.HeaderTool * @alias wp.customize.HeaderTool.ImageModel * * @constructor * @augments Backbone.Model */ api.HeaderTool.ImageModel = Backbone.Model.extend(/** @lends wp.customize.HeaderTool.ImageModel.prototype */{ defaults: function() { return { header: { attachment_id: 0, url: '', timestamp: _.now(), thumbnail_url: '' }, choice: '', selected: false, random: false }; }, initialize: function() { this.on('hide', this.hide, this); }, hide: function() { this.set('choice', ''); api('header_image').set('remove-header'); api('header_image_data').set('remove-header'); }, destroy: function() { var data = this.get('header'), curr = api.HeaderTool.currentHeader.get('header').attachment_id; // If the image we're removing is also the current header, // unset the latter. if (curr && data.attachment_id === curr) { api.HeaderTool.currentHeader.trigger('hide'); } wp.ajax.post( 'custom-header-remove', { nonce: _wpCustomizeHeader.nonces.remove, wp_customize: 'on', theme: api.settings.theme.stylesheet, attachment_id: data.attachment_id }); this.trigger('destroy', this, this.collection); }, save: function() { if (this.get('random')) { api('header_image').set(this.get('header').random); api('header_image_data').set(this.get('header').random); } else { if (this.get('header').defaultName) { api('header_image').set(this.get('header').url); api('header_image_data').set(this.get('header').defaultName); } else { api('header_image').set(this.get('header').url); api('header_image_data').set(this.get('header')); } } api.HeaderTool.combinedList.trigger('control:setImage', this); }, importImage: function() { var data = this.get('header'); if (data.attachment_id === undefined) { return; } wp.ajax.post( 'custom-header-add', { nonce: _wpCustomizeHeader.nonces.add, wp_customize: 'on', theme: api.settings.theme.stylesheet, attachment_id: data.attachment_id } ); }, shouldBeCropped: function() { if (this.get('themeFlexWidth') === true && this.get('themeFlexHeight') === true) { return false; } if (this.get('themeFlexWidth') === true && this.get('themeHeight') === this.get('imageHeight')) { return false; } if (this.get('themeFlexHeight') === true && this.get('themeWidth') === this.get('imageWidth')) { return false; } if (this.get('themeWidth') === this.get('imageWidth') && this.get('themeHeight') === this.get('imageHeight')) { return false; } if (this.get('imageWidth') <= this.get('themeWidth')) { return false; } return true; } }); /** * wp.customize.HeaderTool.ChoiceList * * @memberOf wp.customize.HeaderTool * @alias wp.customize.HeaderTool.ChoiceList * * @constructor * @augments Backbone.Collection */ api.HeaderTool.ChoiceList = Backbone.Collection.extend({ model: api.HeaderTool.ImageModel, // Ordered from most recently used to least. comparator: function(model) { return -model.get('header').timestamp; }, initialize: function() { var current = api.HeaderTool.currentHeader.get('choice').replace(/^https?:\/\//, ''), isRandom = this.isRandomChoice(api.get().header_image); // Overridable by an extending class. if (!this.type) { this.type = 'uploaded'; } // Overridable by an extending class. if (typeof this.data === 'undefined') { this.data = _wpCustomizeHeader.uploads; } if (isRandom) { // So that when adding data we don't hide regular images. current = api.get().header_image; } this.on('control:setImage', this.setImage, this); this.on('control:removeImage', this.removeImage, this); this.on('add', this.maybeRemoveOldCrop, this); this.on('add', this.maybeAddRandomChoice, this); _.each(this.data, function(elt, index) { if (!elt.attachment_id) { elt.defaultName = index; } if (typeof elt.timestamp === 'undefined') { elt.timestamp = 0; } this.add({ header: elt, choice: elt.url.split('/').pop(), selected: current === elt.url.replace(/^https?:\/\//, '') }, { silent: true }); }, this); if (this.size() > 0) { this.addRandomChoice(current); } }, maybeRemoveOldCrop: function( model ) { var newID = model.get( 'header' ).attachment_id || false, oldCrop; // Bail early if we don't have a new attachment ID. if ( ! newID ) { return; } oldCrop = this.find( function( item ) { return ( item.cid !== model.cid && item.get( 'header' ).attachment_id === newID ); } ); // If we found an old crop, remove it from the collection. if ( oldCrop ) { this.remove( oldCrop ); } }, maybeAddRandomChoice: function() { if (this.size() === 1) { this.addRandomChoice(); } }, addRandomChoice: function(initialChoice) { var isRandomSameType = RegExp(this.type).test(initialChoice), randomChoice = 'random-' + this.type + '-image'; this.add({ header: { timestamp: 0, random: randomChoice, width: 245, height: 41 }, choice: randomChoice, random: true, selected: isRandomSameType }); }, isRandomChoice: function(choice) { return (/^random-(uploaded|default)-image$/).test(choice); }, shouldHideTitle: function() { return this.size() < 2; }, setImage: function(model) { this.each(function(m) { m.set('selected', false); }); if (model) { model.set('selected', true); } }, removeImage: function() { this.each(function(m) { m.set('selected', false); }); } }); /** * wp.customize.HeaderTool.DefaultsList * * @memberOf wp.customize.HeaderTool * @alias wp.customize.HeaderTool.DefaultsList * * @constructor * @augments wp.customize.HeaderTool.ChoiceList * @augments Backbone.Collection */ api.HeaderTool.DefaultsList = api.HeaderTool.ChoiceList.extend({ initialize: function() { this.type = 'default'; this.data = _wpCustomizeHeader.defaults; api.HeaderTool.ChoiceList.prototype.initialize.apply(this); } }); })( jQuery, window.wp );