Version Description
Fixed initial setup problem of log creation for multi-site.
Download this release
Release Info
Developer | Katsushi Kawamori |
Plugin | Media from FTP |
Version | 10.05 |
Comparing to | |
See all releases |
Code changes from version 10.04 to 10.05
- mediafromftp.php +1 -1
- readme.txt +4 -1
- req/MediaFromFtpRegist.php +22 -1
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.
|
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.05
|
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.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -123,6 +123,9 @@ Register to media library from files that have been uploaded by FTP.
|
|
123 |
|
124 |
== Changelog ==
|
125 |
|
|
|
|
|
|
|
126 |
= 10.04 =
|
127 |
Built in addons update checker.
|
128 |
Fixed problem of server path status view.
|
5 |
Requires at least: 3.6.0
|
6 |
Requires PHP: 5.3.0
|
7 |
Tested up to: 4.9
|
8 |
+
Stable tag: 10.05
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
123 |
|
124 |
== Changelog ==
|
125 |
|
126 |
+
= 10.05 =
|
127 |
+
Fixed initial setup problem of log creation for multi-site.
|
128 |
+
|
129 |
= 10.04 =
|
130 |
Built in addons update checker.
|
131 |
Fixed problem of server path status view.
|
req/MediaFromFtpRegist.php
CHANGED
@@ -51,10 +51,31 @@ class MediaFromFtpRegist {
|
|
51 |
|
52 |
/* ==================================================
|
53 |
* Settings Log Settings
|
54 |
-
* @since
|
55 |
*/
|
56 |
public function log_settings(){
|
57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
$mediafromftp_log_db_version = '3.0';
|
59 |
$installed_ver = get_option( 'mediafromftp_log_version' );
|
60 |
|
51 |
|
52 |
/* ==================================================
|
53 |
* Settings Log Settings
|
54 |
+
* @since 10.05
|
55 |
*/
|
56 |
public function log_settings(){
|
57 |
|
58 |
+
if ( !is_multisite() ) {
|
59 |
+
$this->log_write();
|
60 |
+
} else { // For Multisite
|
61 |
+
global $wpdb;
|
62 |
+
$blog_ids = $wpdb->get_col( "SELECT blog_id FROM $wpdb->blogs" );
|
63 |
+
$original_blog_id = get_current_blog_id();
|
64 |
+
foreach ( $blog_ids as $blog_id ) {
|
65 |
+
switch_to_blog( $blog_id );
|
66 |
+
$this->log_write();
|
67 |
+
}
|
68 |
+
switch_to_blog( $original_blog_id );
|
69 |
+
}
|
70 |
+
|
71 |
+
}
|
72 |
+
|
73 |
+
/* ==================================================
|
74 |
+
* Settings Log Write
|
75 |
+
* @since 9.19
|
76 |
+
*/
|
77 |
+
private function log_write(){
|
78 |
+
|
79 |
$mediafromftp_log_db_version = '3.0';
|
80 |
$installed_ver = get_option( 'mediafromftp_log_version' );
|
81 |
|