Media from FTP - Version 10.10

Version Description

Fixed problem of getting user ID.

Download this release

Release Info

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

Code changes from version 10.09 to 10.10

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: 10.09
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: 10.10
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: 10.09
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -130,6 +130,9 @@ Password: live789user
130
 
131
  == Changelog ==
132
 
 
 
 
133
  = 10.09 =
134
  Fixed problem of getting user ID.
135
 
5
  Requires at least: 3.6.0
6
  Requires PHP: 5.3.0
7
  Tested up to: 4.9
8
+ Stable tag: 10.10
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
130
 
131
  == Changelog ==
132
 
133
+ = 10.10 =
134
+ Fixed problem of getting user ID.
135
+
136
  = 10.09 =
137
  Fixed problem of getting user ID.
138
 
req/MediaFromFtpAdmin.php CHANGED
@@ -1868,6 +1868,9 @@ class MediaFromFtpAdmin {
1868
  * @since 10.09
1869
  */
1870
  private function wp_options_name() {
 
 
 
1871
  return 'mediafromftp_settings'.'_'.get_current_user_id();
1872
  }
1873
 
@@ -1877,6 +1880,9 @@ class MediaFromFtpAdmin {
1877
  * @since 10.09
1878
  */
1879
  private function wp_add_on_wpcron_events_name() {
 
 
 
1880
  return 'mediafromftp_add_on_wpcron_events'.'_'.get_current_user_id();
1881
  }
1882
 
1868
  * @since 10.09
1869
  */
1870
  private function wp_options_name() {
1871
+ if ( ! function_exists( 'wp_get_current_user' ) ) {
1872
+ include_once(ABSPATH . 'wp-includes/pluggable.php');
1873
+ }
1874
  return 'mediafromftp_settings'.'_'.get_current_user_id();
1875
  }
1876
 
1880
  * @since 10.09
1881
  */
1882
  private function wp_add_on_wpcron_events_name() {
1883
+ if ( ! function_exists( 'wp_get_current_user' ) ) {
1884
+ include_once(ABSPATH . 'wp-includes/pluggable.php');
1885
+ }
1886
  return 'mediafromftp_add_on_wpcron_events'.'_'.get_current_user_id();
1887
  }
1888
 
req/MediaFromFtpAjax.php CHANGED
@@ -290,6 +290,9 @@ class MediaFromFtpAjax {
290
  * @since 10.09
291
  */
292
  private function wp_options_name() {
 
 
 
293
  return 'mediafromftp_settings'.'_'.get_current_user_id();
294
  }
295
 
290
  * @since 10.09
291
  */
292
  private function wp_options_name() {
293
+ if ( ! function_exists( 'wp_get_current_user' ) ) {
294
+ include_once(ABSPATH . 'wp-includes/pluggable.php');
295
+ }
296
  return 'mediafromftp_settings'.'_'.get_current_user_id();
297
  }
298
 
req/MediaFromFtpListTable.php CHANGED
@@ -356,6 +356,9 @@ class TT_MediaFromFtp_List_Table extends WP_List_Table {
356
  * @since 10.09
357
  */
358
  private function wp_options_name() {
 
 
 
359
  return 'mediafromftp_settings'.'_'.get_current_user_id();
360
  }
361
 
356
  * @since 10.09
357
  */
358
  private function wp_options_name() {
359
+ if ( ! function_exists( 'wp_get_current_user' ) ) {
360
+ include_once(ABSPATH . 'wp-includes/pluggable.php');
361
+ }
362
  return 'mediafromftp_settings'.'_'.get_current_user_id();
363
  }
364