Media from FTP - Version 9.93

Version Description

Fixed problem of category for Add On.

Download this release

Release Info

Developer Katsushi Kawamori
Plugin Icon wp plugin Media from FTP
Version 9.93
Comparing to
See all releases

Code changes from version 9.92 to 9.93

Files changed (3) hide show
  1. mediafromftp.php +1 -1
  2. readme.txt +4 -1
  3. req/MediaFromFtpAdmin.php +4 -4
mediafromftp.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Media from FTP
4
  Plugin URI: https://wordpress.org/plugins/media-from-ftp/
5
- Version: 9.92
6
  Description: Register to media library from files that have been uploaded by FTP.
7
  Author: Katsushi Kawamori
8
  Author URI: https://riverforest-wp.info/
2
  /*
3
  Plugin Name: Media from FTP
4
  Plugin URI: https://wordpress.org/plugins/media-from-ftp/
5
+ Version: 9.93
6
  Description: Register to media library from files that have been uploaded by FTP.
7
  Author: Katsushi Kawamori
8
  Author URI: https://riverforest-wp.info/
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: files, ftp, import, media, sync, uploads
5
  Requires at least: 3.6.0
6
  Requires PHP: 5.3.0
7
  Tested up to: 4.9
8
- Stable tag: 9.92
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -125,6 +125,9 @@ Register to media library from files that have been uploaded by FTP.
125
 
126
  == Changelog ==
127
 
 
 
 
128
  = 9.92 =
129
  Fixed problem of category for Add On.
130
 
5
  Requires at least: 3.6.0
6
  Requires PHP: 5.3.0
7
  Tested up to: 4.9
8
+ Stable tag: 9.93
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
125
 
126
  == Changelog ==
127
 
128
+ = 9.93 =
129
+ Fixed problem of category for Add On.
130
+
131
  = 9.92 =
132
  Fixed problem of category for Add On.
133
 
req/MediaFromFtpAdmin.php CHANGED
@@ -1599,22 +1599,22 @@ class MediaFromFtpAdmin {
1599
  $mediafromftp_settings['search_limit_number'] = 100000;
1600
  }
1601
  if ( !empty($_POST['mlc_category']) ) {
1602
- $mediafromftp_settings['mlcc'] = implode(',', sanitize_text_field($_POST['mlc_category']));
1603
  } else {
1604
  $mediafromftp_settings['mlcc'] = NULL;
1605
  }
1606
  if ( !empty($_POST['eml_category']) ) {
1607
- $mediafromftp_settings['emlc'] = implode(',', sanitize_text_field($_POST['eml_category']));
1608
  } else {
1609
  $mediafromftp_settings['emlc'] = NULL;
1610
  }
1611
  if ( !empty($_POST['mla_category']) ) {
1612
- $mediafromftp_settings['mlac'] = implode(',', sanitize_text_field($_POST['mla_category']));
1613
  } else {
1614
  $mediafromftp_settings['mlac'] = NULL;
1615
  }
1616
  if ( !empty($_POST['mla_tag']) ) {
1617
- $mediafromftp_settings['mlat'] = implode(',', sanitize_text_field($_POST['mla_tag']));
1618
  } else {
1619
  $mediafromftp_settings['mlat'] = NULL;
1620
  }
1599
  $mediafromftp_settings['search_limit_number'] = 100000;
1600
  }
1601
  if ( !empty($_POST['mlc_category']) ) {
1602
+ $mediafromftp_settings['mlcc'] = implode(',', $mediafromftp->sanitize_array($_POST['mlc_category']));
1603
  } else {
1604
  $mediafromftp_settings['mlcc'] = NULL;
1605
  }
1606
  if ( !empty($_POST['eml_category']) ) {
1607
+ $mediafromftp_settings['emlc'] = implode(',', $mediafromftp->sanitize_array($_POST['eml_category']));
1608
  } else {
1609
  $mediafromftp_settings['emlc'] = NULL;
1610
  }
1611
  if ( !empty($_POST['mla_category']) ) {
1612
+ $mediafromftp_settings['mlac'] = implode(',', $mediafromftp->sanitize_array($_POST['mla_category']));
1613
  } else {
1614
  $mediafromftp_settings['mlac'] = NULL;
1615
  }
1616
  if ( !empty($_POST['mla_tag']) ) {
1617
+ $mediafromftp_settings['mlat'] = implode(',', $mediafromftp->sanitize_array($_POST['mla_tag']));
1618
  } else {
1619
  $mediafromftp_settings['mlat'] = NULL;
1620
  }