plugin updates

This commit is contained in:
Tony Volpe
2024-07-16 13:57:46 +00:00
parent 41f50eacc4
commit 8f93917880
1529 changed files with 259452 additions and 25451 deletions
@@ -2441,7 +2441,8 @@ html[dir=rtl] .acf-field-object.open > .handle {
.acf-taxonomy-select-id,
.acf-relationship-select-id,
.acf-post_object-select-id,
.acf-page_link-select-id {
.acf-page_link-select-id,
.acf-user-select-id {
color: #98A2B3;
padding-left: 10px;
}
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1269,6 +1269,12 @@ html[dir=rtl] .acf-button-group label:last-child {
border-radius: 120px;
}
.acf-true-false:has(.acf-switch) label {
display: flex;
align-items: center;
justify-items: center;
}
/* in media modal */
.compat-item .acf-true-false .message {
float: none;
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
<?php
// There are many ways to WordPress.
@@ -0,0 +1,2 @@
<?php
// There are many ways to WordPress.
@@ -0,0 +1,2 @@
<?php
// There are many ways to WordPress.
@@ -3059,21 +3059,16 @@ __webpack_require__.r(__webpack_exports__);
/* harmony export */ });
/* harmony import */ var _toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./toPropertyKey.js */ "./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js");
function _defineProperty(obj, key, value) {
key = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(key);
if (key in obj) {
Object.defineProperty(obj, key, {
value: value,
enumerable: true,
configurable: true,
writable: true
});
} else {
obj[key] = value;
}
return obj;
function _defineProperty(e, r, t) {
return (r = (0,_toPropertyKey_js__WEBPACK_IMPORTED_MODULE_0__["default"])(r)) in e ? Object.defineProperty(e, r, {
value: t,
enumerable: !0,
configurable: !0,
writable: !0
}) : e[r] = t, e;
}
/***/ }),
/***/ "./node_modules/@babel/runtime/helpers/esm/toPrimitive.js":
@@ -3100,6 +3095,7 @@ function toPrimitive(t, r) {
return ("string" === r ? String : Number)(t);
}
/***/ }),
/***/ "./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js":
@@ -3122,6 +3118,7 @@ function toPropertyKey(t) {
return "symbol" == (0,_typeof_js__WEBPACK_IMPORTED_MODULE_0__["default"])(i) ? i : i + "";
}
/***/ }),
/***/ "./node_modules/@babel/runtime/helpers/esm/typeof.js":
@@ -3145,6 +3142,7 @@ function _typeof(o) {
}, _typeof(o);
}
/***/ })
/******/ });
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -777,6 +777,7 @@
ajaxData: function (data) {
ajaxData.paged = data.paged;
ajaxData.s = data.s;
ajaxData.conditional_logic = true;
ajaxData.include = $.isNumeric(data.s) ? Number(data.s) : '';
return acf.prepareForAjax(ajaxData);
},
@@ -4464,15 +4465,15 @@
this.set('timeout', setTimeout(callback, 300));
},
search: function (url) {
// ajax
var ajaxData = {
const ajaxData = {
action: 'acf/fields/oembed/search',
s: url,
field_key: this.get('key')
field_key: this.get('key'),
nonce: this.get('nonce')
};
// clear existing timeout
var xhr = this.get('xhr');
let xhr = this.get('xhr');
if (xhr) {
xhr.abort();
}
@@ -4481,7 +4482,7 @@
this.showLoading();
// query
var xhr = $.ajax({
xhr = $.ajax({
url: acf.get('ajaxurl'),
data: acf.prepareForAjax(ajaxData),
type: 'post',
@@ -4892,6 +4893,7 @@
// extra
ajaxData.action = 'acf/fields/relationship/query';
ajaxData.field_key = this.get('key');
ajaxData.nonce = this.get('nonce');
// Filter.
ajaxData = acf.applyFilters('relationship_ajax_data', ajaxData, this);
@@ -5673,7 +5675,8 @@
// ajax
var ajaxData = {
action: 'acf/fields/taxonomy/add_term',
field_key: field.get('key')
field_key: field.get('key'),
nonce: field.get('nonce')
};
// get HTML
@@ -5724,6 +5727,7 @@
var ajaxData = {
action: 'acf/fields/taxonomy/add_term',
field_key: field.get('key'),
nonce: field.get('nonce'),
term_name: $name.val(),
term_parent: $parent.length ? $parent.val() : 0
};
@@ -6109,16 +6113,6 @@
type: 'user'
});
acf.registerFieldType(Field);
acf.addFilter('select2_ajax_data', function (data, args, $input, field, select2) {
if (!field || 'user' !== field.get('type')) {
return data;
}
const query_nonce = field.get('queryNonce');
if (query_nonce && query_nonce.toString().length) {
data.user_query_nonce = query_nonce;
}
return data;
});
})(jQuery);
/***/ }),
@@ -9245,6 +9239,9 @@
var field = this.get('field');
if (field) {
ajaxData.field_key = field.get('key');
if (field.get('nonce')) {
ajaxData.nonce = field.get('nonce');
}
}
// callback
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -3306,30 +3306,25 @@
};
/**
* acf.prepareForAjax
* Prepares AJAX data prior to being sent.
*
* description
* @since 5.6.5
*
* @date 4/1/18
* @since 5.6.5
*
* @param type $var Description. Default.
* @return type Description.
* @param {Object} data The data to prepare
* @return {Object} The prepared data.
*/
acf.prepareForAjax = function (data) {
// required
data.nonce = acf.get('nonce');
// Set a default nonce if we don't have one already.
if ('undefined' === typeof data.nonce) {
data.nonce = acf.get('nonce');
}
data.post_id = acf.get('post_id');
// language
if (acf.has('language')) {
data.lang = acf.get('language');
}
// filter for 3rd party customization
// Filter for 3rd party customization.
data = acf.applyFilters('prepare_for_ajax', data);
// return
return data;
};
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
<?php
// There are many ways to WordPress.
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1002,9 +1002,9 @@
// step 2
var step2 = this.proxy(function () {
// ajax
var ajaxData = {
const ajaxData = {
action: 'acf/fields/gallery/get_attachment',
nonce: this.get('nonce'),
field_key: this.get('key'),
id: id
};
@@ -1086,9 +1086,9 @@
// step 1
var step1 = this.proxy(function () {
// vars
var ajaxData = {
const ajaxData = {
action: 'acf/fields/gallery/get_sort_order',
nonce: this.get('nonce'),
field_key: this.get('key'),
ids: ids,
sort: val
@@ -1134,14 +1134,16 @@
}
// serialize data
var ajaxData = acf.serialize(this.$sideData());
const ajaxData = acf.serialize(this.$sideData());
// loading
$submit.addClass('disabled');
$submit.before('<i class="acf-loading"></i> ');
// append AJAX action
// Append AJAX action and nonce.
ajaxData.action = 'acf/fields/gallery/update_attachment';
ajaxData.nonce = this.get('nonce');
ajaxData.field_key = this.get('key');
// ajax
$.ajax({
@@ -1876,7 +1878,8 @@
field_key: this.get('key'),
field_name: this.get('orig_name'),
rows_per_page: parseInt(this.get('per_page')),
refresh: clearChanged
refresh: clearChanged,
nonce: this.get('nonce')
});
$.ajax({
url: ajaxurl,
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,2 @@
<?php
// There are many ways to WordPress.
@@ -0,0 +1,2 @@
<?php
// There are many ways to WordPress.
@@ -0,0 +1,2 @@
<?php
// There are many ways to WordPress.
@@ -0,0 +1,2 @@
<?php
// There are many ways to WordPress.
@@ -0,0 +1,2 @@
<?php
// There are many ways to WordPress.
@@ -0,0 +1,2 @@
<?php
// There are many ways to WordPress.
@@ -0,0 +1,2 @@
<?php
// There are many ways to WordPress.
@@ -0,0 +1,2 @@
<?php
// There are many ways to WordPress.
@@ -0,0 +1,2 @@
<?php
// There are many ways to WordPress.
@@ -0,0 +1,2 @@
<?php
// There are many ways to WordPress.
@@ -0,0 +1,2 @@
<?php
// There are many ways to WordPress.
@@ -0,0 +1,2 @@
<?php
// There are many ways to WordPress.
@@ -0,0 +1,2 @@
<?php
// There are many ways to WordPress.
@@ -0,0 +1,2 @@
<?php
// There are many ways to WordPress.