Version Description
Fixed a problem of read logs.
Download this release
Release Info
Developer | Katsushi Kawamori |
Plugin | Media from FTP |
Version | 11.12 |
Comparing to | |
See all releases |
Code changes from version 11.11 to 11.12
- mediafromftp.php +1 -1
- readme.txt +4 -1
- req/class-mediafromftpadmin.php +10 -8
mediafromftp.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Media from FTP
|
4 |
* Plugin URI: https://wordpress.org/plugins/media-from-ftp/
|
5 |
* Description: Register to media library from files that have been uploaded by FTP.
|
6 |
-
* Version: 11.
|
7 |
* Author: Katsushi Kawamori
|
8 |
* Author URI: https://riverforest-wp.info/
|
9 |
* License: GPL2
|
3 |
* Plugin Name: Media from FTP
|
4 |
* Plugin URI: https://wordpress.org/plugins/media-from-ftp/
|
5 |
* Description: Register to media library from files that have been uploaded by FTP.
|
6 |
+
* Version: 11.12
|
7 |
* Author: Katsushi Kawamori
|
8 |
* Author URI: https://riverforest-wp.info/
|
9 |
* License: GPL2
|
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.6
|
7 |
Tested up to: 5.5
|
8 |
-
Stable tag: 11.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -135,6 +135,9 @@ Password: live789user
|
|
135 |
|
136 |
== Changelog ==
|
137 |
|
|
|
|
|
|
|
138 |
= 11.11 =
|
139 |
Fixed a problem with the output of metadata.
|
140 |
|
5 |
Requires at least: 3.6.0
|
6 |
Requires PHP: 5.6
|
7 |
Tested up to: 5.5
|
8 |
+
Stable tag: 11.12
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
135 |
|
136 |
== Changelog ==
|
137 |
|
138 |
+
= 11.12 =
|
139 |
+
Fixed a problem of read logs.
|
140 |
+
|
141 |
= 11.11 =
|
142 |
Fixed a problem with the output of metadata.
|
143 |
|
req/class-mediafromftpadmin.php
CHANGED
@@ -1370,14 +1370,16 @@ class MediaFromFtpAdmin {
|
|
1370 |
$html_thumbnail = null;
|
1371 |
if ( $record->thumbnail ) {
|
1372 |
$thumbnails = json_decode( $record->thumbnail, true );
|
1373 |
-
if (
|
1374 |
-
$max_thumbnail_count
|
1375 |
-
|
1376 |
-
|
1377 |
-
|
1378 |
-
|
1379 |
-
|
1380 |
-
|
|
|
|
|
1381 |
}
|
1382 |
}
|
1383 |
$html_mlccategory = null;
|
1370 |
$html_thumbnail = null;
|
1371 |
if ( $record->thumbnail ) {
|
1372 |
$thumbnails = json_decode( $record->thumbnail, true );
|
1373 |
+
if ( ! empty( $thumbnails ) ) {
|
1374 |
+
if ( $max_thumbnail_count < count( $thumbnails ) ) {
|
1375 |
+
$max_thumbnail_count = count( $thumbnails );
|
1376 |
+
}
|
1377 |
+
$count = 0;
|
1378 |
+
foreach ( $thumbnails as $thumbnail ) {
|
1379 |
+
++$count;
|
1380 |
+
$html_thumbnail .= '<tr><th align="right" style="white-space: nowrap;">' . __( 'Images' ) . $count . ':</th><td>' . $thumbnail . '</td></tr>';
|
1381 |
+
$csvs .= ',"' . $thumbnail . '"';
|
1382 |
+
}
|
1383 |
}
|
1384 |
}
|
1385 |
$html_mlccategory = null;
|