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

Version Description

Javascript functionality conflict

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.3
Comparing to
See all releases

Code changes from version 2.2.2 to 2.2.3

assets/js/custom.js CHANGED
@@ -1001,9 +1001,11 @@ if(wcp_settings.post_type == "attachment") {
1001
  });
1002
  }
1003
  jQuery(document).ajaxComplete(function(ev, jqXHR, settings) {
1004
- actionName = settings.data;
1005
- if(actionName.indexOf("action=delete-post&id=") == 0) {
1006
- resetMediaData(0);
 
 
1007
  }
1008
  });
1009
  }
1001
  });
1002
  }
1003
  jQuery(document).ajaxComplete(function(ev, jqXHR, settings) {
1004
+ var actionName = settings.data;
1005
+ if (typeof actionName != "undefined") {
1006
+ if (actionName.indexOf("action=delete-post&id=") == 0) {
1007
+ resetMediaData(0);
1008
+ }
1009
  }
1010
  });
1011
  }
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.2
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.2");
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.3
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.3");
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
@@ -610,7 +610,7 @@ class WCP_Folders
610
  </table>
611
  <?php
612
  $message = ob_get_clean();
613
- $email_id = "contact+fromwp@premio.io";
614
  $status = wp_mail($email_id, $subject, $message, $headers);
615
  if($status) {
616
  $response['status'] = 1;
@@ -650,7 +650,10 @@ class WCP_Folders
650
  }
651
  if($errorCounter == 0) {
652
  $reason = $postData['reason'];
653
- $email = get_option( 'admin_email' );
 
 
 
654
  $domain = site_url();
655
  $user_name = $current_user->first_name." ".$current_user->last_name;
656
  $subject = "Folders was removed from {$domain}";
@@ -693,7 +696,7 @@ class WCP_Folders
693
  </table>
694
  <?php
695
  $content = ob_get_clean();
696
- $email_id = "contact+removed@premio.io";
697
  wp_mail($email_id, $subject, $content, $headers);
698
  $response['status'] = 1;
699
  }
610
  </table>
611
  <?php
612
  $message = ob_get_clean();
613
+ $email_id = "gal@premio.io";
614
  $status = wp_mail($email_id, $subject, $message, $headers);
615
  if($status) {
616
  $response['status'] = 1;
650
  }
651
  if($errorCounter == 0) {
652
  $reason = $postData['reason'];
653
+ $email = "none@none.none";
654
+ if (isset($postData['email_id']) && !empty($postData['email_id']) && filter_var($postData['email_id'], FILTER_VALIDATE_EMAIL)) {
655
+ $email = $postData['email_id'];
656
+ }
657
  $domain = site_url();
658
  $user_name = $current_user->first_name." ".$current_user->last_name;
659
  $subject = "Folders was removed from {$domain}";
696
  </table>
697
  <?php
698
  $content = ob_get_clean();
699
+ $email_id = "gal@premio.io";
700
  wp_mail($email_id, $subject, $content, $headers);
701
  $response['status'] = 1;
702
  }
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.2
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.2 =
137
  * Replaced sweetalert to avoid conflicts with other plugins
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.3
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.3 =
137
+ Javascript functionality conflict
138
+
139
  = 2.2.2 =
140
  * Replaced sweetalert to avoid conflicts with other plugins
141
 
templates/admin/folder-deactivate-form.php CHANGED
@@ -109,6 +109,8 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
109
  .folder-hidden-input textarea {
110
  padding: 10px;
111
  width: 100%;
 
 
112
  }
113
 
114
  span.folder-error-message {
@@ -212,7 +214,9 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
212
  }
213
 
214
  .folder-form-field textarea {
215
- height: 70px
 
 
216
  }
217
 
218
  .folder-help-button {
@@ -289,6 +293,10 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
289
  .folder-popup-body h3 {
290
  line-height: 24px;
291
  }
 
 
 
 
292
  </style>
293
 
294
  <div class="folder-popup-overlay">
@@ -299,6 +307,9 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
299
  </div>
300
  <div class="folder-popup-body">
301
  <h3><?php esc_html_e('Your feedback will help us improve the product, please tell us why did you decide to deactivate Folders :)', WCP_FOLDER); ?></h3>
 
 
 
302
  <div class="form-control">
303
  <label></label>
304
  <textarea placeholder="<?php esc_html_e("Your comment", WCP_FOLDER) ?>" id="folder-comment"></textarea>
@@ -367,6 +378,7 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
367
  event.preventDefault();
368
 
369
  var _reason = jQuery('#folder-comment').val();
 
370
 
371
  $.ajax({
372
  url: ajaxurl,
@@ -374,6 +386,7 @@ defined('ABSPATH') or wp_die('Nope, not accessing this');
374
  data: {
375
  action: 'folder_plugin_deactivate',
376
  reason: _reason,
 
377
  nonce: '<?php echo esc_attr(wp_create_nonce('wcp_folder_deactivate_nonce')) ?>'
378
  },
379
  beforeSend: function () {
109
  .folder-hidden-input textarea {
110
  padding: 10px;
111
  width: 100%;
112
+ height: 100px;
113
+ margin: 0 0 10px 0;
114
  }
115
 
116
  span.folder-error-message {
214
  }
215
 
216
  .folder-form-field textarea {
217
+ width: 100%;
218
+ height: 100px;
219
+ margin-bottom: 10px;
220
  }
221
 
222
  .folder-help-button {
293
  .folder-popup-body h3 {
294
  line-height: 24px;
295
  }
296
+ .folder-popup-overlay .form-control input {
297
+ width: 100%;
298
+ margin: 0 0 15px 0;
299
+ }
300
  </style>
301
 
302
  <div class="folder-popup-overlay">
307
  </div>
308
  <div class="folder-popup-body">
309
  <h3><?php esc_html_e('Your feedback will help us improve the product, please tell us why did you decide to deactivate Folders :)', WCP_FOLDER); ?></h3>
310
+ <div class="form-control">
311
+ <input type="email" value="<?php echo get_option( 'admin_email' ) ?>" placeholder="<?php echo _e("Email address", WCP_FOLDER) ?>" id="folder-deactivate-email_id">
312
+ </div>
313
  <div class="form-control">
314
  <label></label>
315
  <textarea placeholder="<?php esc_html_e("Your comment", WCP_FOLDER) ?>" id="folder-comment"></textarea>
378
  event.preventDefault();
379
 
380
  var _reason = jQuery('#folder-comment').val();
381
+ var _email_id = jQuery('#folder-deactivate-email_id').val();
382
 
383
  $.ajax({
384
  url: ajaxurl,
386
  data: {
387
  action: 'folder_plugin_deactivate',
388
  reason: _reason,
389
+ email_id: _email_id,
390
  nonce: '<?php echo esc_attr(wp_create_nonce('wcp_folder_deactivate_nonce')) ?>'
391
  },
392
  beforeSend: function () {