plugin update (wp-media-folder)

This commit is contained in:
Tony Volpe
2024-09-05 11:05:17 -04:00
parent 50cd64dd3d
commit daa614524b
20 changed files with 16137 additions and 73 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -340,14 +340,16 @@ var wpmfFoldersModule = void 0,
}
};
// Create an observer instance linked to the callback function
const observer = new MutationObserver(callback);
if (targetNode){
// Create an observer instance linked to the callback function
const observer = new MutationObserver(callback);
// Start observing the target node for configured mutations
observer.observe(targetNode, config);
// Start observing the target node for configured mutations
observer.observe(targetNode, config);
// Later, you can stop observing
// observer.disconnect();
// Later, you can stop observing
// observer.disconnect();
}
// Add the creation gallery from folder button

View File

@@ -91,7 +91,7 @@ var wpmfSnackbarModule = void 0;
// Reset the close function as we've done an undo
wpmfSnackbarModule.snackbar_ids[snack_id].onClose = function () {};
// Finally close the snackbar
wpmfSnackbarModule.snackbar_ids[snack_id].close(snack_id);
wpmfSnackbarModule.close(snack_id);
});
Object.keys(wpmfSnackbarModule.snackbar_ids).map(function (snack_id, index) {