Folders – Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager - Version 2.2.8

Version Description

Folder organization dropdown bug

Download this release

Release Info

Developer galdub
Plugin Icon wp plugin Folders – Unlimited Folders to Organize Media Library Folder, Pages, Posts, File Manager
Version 2.2.8
Comparing to
See all releases

Code changes from version 2.2.7 to 2.2.8

assets/js/custom.js CHANGED
@@ -1170,6 +1170,10 @@ if(wcp_settings.post_type == "attachment") {
1170
  } else {
1171
  eraseCookie("media-select-mode");
1172
  }
 
 
 
 
1173
  }, 1000);
1174
  });
1175
 
1170
  } else {
1171
  eraseCookie("media-select-mode");
1172
  }
1173
+
1174
+ if(jQuery("#media-attachment-taxonomy-filter").length) {
1175
+ resetMediaData(0);
1176
+ }
1177
  }, 1000);
1178
  });
1179
 
folders.php CHANGED
@@ -2,7 +2,7 @@
2
  /**
3
  * Plugin Name: Folders
4
  * Description: Arrange media, pages, custom post types and posts into folders
5
- * Version: 2.2.7
6
  * Author: Premio
7
  * Author URI: https://premio.io/downloads/folders/
8
  */
@@ -15,7 +15,7 @@ define('WCP_FOLDER', 'folders');
15
  define('WCP_FOLDER_VAR', 'folders_settings');
16
  define("WCP_DS", DIRECTORY_SEPARATOR);
17
  define('WCP_FOLDER_URL',plugin_dir_url(__FILE__));
18
- define('WCP_FOLDER_VERSION',"2.2.7");
19
 
20
  include_once plugin_dir_path(__FILE__)."includes/folders.class.php";
21
  register_activation_hook( __FILE__, array( 'WCP_Folders', 'activate' ) );
2
  /**
3
  * Plugin Name: Folders
4
  * Description: Arrange media, pages, custom post types and posts into folders
5
+ * Version: 2.2.8
6
  * Author: Premio
7
  * Author URI: https://premio.io/downloads/folders/
8
  */
15
  define('WCP_FOLDER_VAR', 'folders_settings');
16
  define("WCP_DS", DIRECTORY_SEPARATOR);
17
  define('WCP_FOLDER_URL',plugin_dir_url(__FILE__));
18
+ define('WCP_FOLDER_VERSION',"2.2.8");
19
 
20
  include_once plugin_dir_path(__FILE__)."includes/folders.class.php";
21
  register_activation_hook( __FILE__, array( 'WCP_Folders', 'activate' ) );
includes/folders.class.php CHANGED
@@ -462,10 +462,11 @@ class WCP_Folders
462
  // return $hierarchical_terms;
463
  $terms = get_terms( array(
464
  'taxonomy' => $taxonomy,
465
- 'hide_empty' => false,
466
- 'parent' => 0,
467
  'orderby' => 'meta_value_num',
468
  'order' => 'ASC',
 
469
  'update_count_callback' => '_update_generic_term_count',
470
  'meta_query' => [[
471
  'key' => 'wcp_custom_order',
@@ -487,6 +488,7 @@ class WCP_Folders
487
  'parent' => $term_id,
488
  'orderby' => 'meta_value_num',
489
  'order' => 'ASC',
 
490
  'update_count_callback' => '_update_generic_term_count',
491
  'meta_query' => [[
492
  'key' => 'wcp_custom_order',
@@ -582,7 +584,7 @@ class WCP_Folders
582
  'show_option_all' => esc_html__('All Folders', WCP_FOLDER ),
583
  'show_option_none' => esc_html__('(Unassigned)', WCP_FOLDER ),
584
  'option_none_value' => -1,
585
- 'orderby' => 'name',
586
  'order' => 'ASC',
587
  'show_count' => true,
588
  'hide_empty' => false,
@@ -594,6 +596,10 @@ class WCP_Folders
594
  'class' => '',
595
  'taxonomy' => 'media_folder',
596
  'value_field' => 'slug',
 
 
 
 
597
  ) );
598
 
599
  }
462
  // return $hierarchical_terms;
463
  $terms = get_terms( array(
464
  'taxonomy' => $taxonomy,
465
+ 'hide_empty' => false,
466
+ 'parent' => 0,
467
  'orderby' => 'meta_value_num',
468
  'order' => 'ASC',
469
+ 'hierarchical' => false,
470
  'update_count_callback' => '_update_generic_term_count',
471
  'meta_query' => [[
472
  'key' => 'wcp_custom_order',
488
  'parent' => $term_id,
489
  'orderby' => 'meta_value_num',
490
  'order' => 'ASC',
491
+ 'hierarchical' => false,
492
  'update_count_callback' => '_update_generic_term_count',
493
  'meta_query' => [[
494
  'key' => 'wcp_custom_order',
584
  'show_option_all' => esc_html__('All Folders', WCP_FOLDER ),
585
  'show_option_none' => esc_html__('(Unassigned)', WCP_FOLDER ),
586
  'option_none_value' => -1,
587
+ 'orderby' => 'meta_value_num',
588
  'order' => 'ASC',
589
  'show_count' => true,
590
  'hide_empty' => false,
596
  'class' => '',
597
  'taxonomy' => 'media_folder',
598
  'value_field' => 'slug',
599
+ 'meta_query' => [[
600
+ 'key' => 'wcp_custom_order',
601
+ 'type' => 'NUMERIC',
602
+ ]]
603
  ) );
604
 
605
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: galdub, tomeraharon, premio
3
  Tags: folder, folders, organize, pages folders, media library, posts folders, media folders, subfolders, file manager, directories
4
  Requires at least: 3.0.0
5
  Tested up to: 5.2
6
- Stable tag: 2.2.7
7
  Plugin URI: https://premio.io/downloads/folders/
8
 
9
  Folders is a WordPress plugin that will help you quickly organize and manage all of your Pages, Posts and Media library files in folders.
@@ -133,6 +133,9 @@ A live demo for the Folders plugin is available at <a href="https://demo.premio.
133
 
134
  == Changelog ==
135
 
 
 
 
136
  = 2.2.7 =
137
  Better folder drag and drop
138
 
3
  Tags: folder, folders, organize, pages folders, media library, posts folders, media folders, subfolders, file manager, directories
4
  Requires at least: 3.0.0
5
  Tested up to: 5.2
6
+ Stable tag: 2.2.8
7
  Plugin URI: https://premio.io/downloads/folders/
8
 
9
  Folders is a WordPress plugin that will help you quickly organize and manage all of your Pages, Posts and Media library files in folders.
133
 
134
  == Changelog ==
135
 
136
+ = 2.2.8 =
137
+ Folder organization dropdown bug
138
+
139
  = 2.2.7 =
140
  Better folder drag and drop
141