plugin updates
This commit is contained in:
@@ -11308,7 +11308,7 @@
|
||||
const acfBlockState = acf.blockInstances[selectedBlockId];
|
||||
if (acfBlockState.validation_errors) {
|
||||
// Deselect the block to show the error and lock the save.
|
||||
console.log('Rejecting save because the block editor has a invalid ACF block selected.');
|
||||
acf.debug('Rejecting save because the block editor has a invalid ACF block selected.');
|
||||
notices.createErrorNotice(acf.__('An ACF Block on this page requires attention before you can save.'), {
|
||||
id: 'acf-validation',
|
||||
isDismissible: true
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1401,7 +1401,7 @@ const md5 = __webpack_require__(/*! md5 */ "./node_modules/md5/md5.js");
|
||||
data
|
||||
});
|
||||
}
|
||||
if (blockSupportsValidation(name) && !silent && thisBlockForm.getMode() !== 'preview') {
|
||||
if (blockSupportsValidation(name) && !silent && thisBlockForm.getMode() === 'edit') {
|
||||
acf.debug('No block preview currently available. Need to trigger a validation only fetch.');
|
||||
thisBlockForm.fetch(true, data);
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user