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

View File

@@ -1016,6 +1016,12 @@ class WpMediaFolder
*/
public function loadAssets()
{
global $typenow, $current_screen;
if (WpmfHelper::isForThisPostType($typenow) && 'edit' == $current_screen->base) {
return;
}
wp_enqueue_script('jquery');
wp_enqueue_script('jquery-ui-sortable');
wp_enqueue_script('jquery-ui-draggable');
@@ -2042,7 +2048,8 @@ class WpMediaFolder
continue;
}
if (defined('WPMFAD_PLUGIN_DIR')) {
// Todo: Upon disconnection, remove cloud folder data from the database. This will bypass the unnecessary 'exclude' check, enhancing overall performance
if (false && defined('WPMFAD_PLUGIN_DIR')) {
$type = $this->getTermMeta($term->term_id, 'wpmf_drive_type');
if ((in_array('Dropbox', $exclude) && $type === 'dropbox')
|| (in_array('Google Drive', $exclude) && $type === 'google_drive')