plugin update (wp-media-folder)
This commit is contained in:
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user