Version Description
Fixed problem of logs. Changed Add On link.
Download this release
Release Info
Developer | Katsushi Kawamori |
Plugin | Media from FTP |
Version | 9.96 |
Comparing to | |
See all releases |
Code changes from version 9.95 to 9.96
- mediafromftp.php +1 -1
- readme.txt +5 -1
- req/MediaFromFtpAdmin.php +4 -4
- req/MediaFromFtpAjax.php +1 -1
- req/MediaFromFtpRegist.php +3 -3
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.
|
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.96
|
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.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
@@ -126,6 +126,10 @@ Register to media library from files that have been uploaded by FTP.
|
|
126 |
|
127 |
== Changelog ==
|
128 |
|
|
|
|
|
|
|
|
|
129 |
= 9.95 =
|
130 |
Fixed problem of robots.txt.
|
131 |
|
5 |
Requires at least: 3.6.0
|
6 |
Requires PHP: 5.3.0
|
7 |
Tested up to: 4.9
|
8 |
+
Stable tag: 9.96
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
126 |
|
127 |
== Changelog ==
|
128 |
|
129 |
+
= 9.96 =
|
130 |
+
Fixed problem of logs.
|
131 |
+
Changed Add On link.
|
132 |
+
|
133 |
= 9.95 =
|
134 |
Fixed problem of robots.txt.
|
135 |
|
req/MediaFromFtpAdmin.php
CHANGED
@@ -1469,7 +1469,7 @@ class MediaFromFtpAdmin {
|
|
1469 |
} else {
|
1470 |
?>
|
1471 |
<div>
|
1472 |
-
<a href="<?php _e('https://riverforest-wp.info/media-from-ftp-add-on-cli/', 'media-from-ftp'); ?>" target="_blank" class="page-title-action"><?php _e('BUY', 'media-from-ftp'); ?></a>
|
1473 |
</div>
|
1474 |
<?php
|
1475 |
}
|
@@ -1497,7 +1497,7 @@ class MediaFromFtpAdmin {
|
|
1497 |
} else {
|
1498 |
?>
|
1499 |
<div>
|
1500 |
-
<a href="<?php _e('https://riverforest-wp.info/media-from-ftp-add-on-wpcron/', 'media-from-ftp'); ?>" target="_blank" class="page-title-action"><?php _e('BUY', 'media-from-ftp'); ?></a>
|
1501 |
</div>
|
1502 |
<?php
|
1503 |
}
|
@@ -1524,7 +1524,7 @@ class MediaFromFtpAdmin {
|
|
1524 |
} else {
|
1525 |
?>
|
1526 |
<div>
|
1527 |
-
<a href="<?php _e('https://riverforest-wp.info/media-from-ftp-add-on-category/', 'media-from-ftp'); ?>" target="_blank" class="page-title-action"><?php _e('BUY', 'media-from-ftp'); ?></a>
|
1528 |
</div>
|
1529 |
<?php
|
1530 |
}
|
@@ -1553,7 +1553,7 @@ class MediaFromFtpAdmin {
|
|
1553 |
} else {
|
1554 |
?>
|
1555 |
<div>
|
1556 |
-
<a href="<?php _e('https://riverforest-wp.info/media-from-ftp-add-on-exif/', 'media-from-ftp'); ?>" target="_blank" class="page-title-action"><?php _e('BUY', 'media-from-ftp'); ?></a>
|
1557 |
</div>
|
1558 |
<?php
|
1559 |
}
|
1469 |
} else {
|
1470 |
?>
|
1471 |
<div>
|
1472 |
+
<a href="<?php _e('https://media-from-ftp.riverforest-wp.info/media-from-ftp-add-on-cli/', 'media-from-ftp'); ?>" target="_blank" class="page-title-action"><?php _e('BUY', 'media-from-ftp'); ?></a>
|
1473 |
</div>
|
1474 |
<?php
|
1475 |
}
|
1497 |
} else {
|
1498 |
?>
|
1499 |
<div>
|
1500 |
+
<a href="<?php _e('https://media-from-ftp.riverforest-wp.info/media-from-ftp-add-on-wpcron/', 'media-from-ftp'); ?>" target="_blank" class="page-title-action"><?php _e('BUY', 'media-from-ftp'); ?></a>
|
1501 |
</div>
|
1502 |
<?php
|
1503 |
}
|
1524 |
} else {
|
1525 |
?>
|
1526 |
<div>
|
1527 |
+
<a href="<?php _e('https://media-from-ftp.riverforest-wp.info/media-from-ftp-add-on-category/', 'media-from-ftp'); ?>" target="_blank" class="page-title-action"><?php _e('BUY', 'media-from-ftp'); ?></a>
|
1528 |
</div>
|
1529 |
<?php
|
1530 |
}
|
1553 |
} else {
|
1554 |
?>
|
1555 |
<div>
|
1556 |
+
<a href="<?php _e('https://media-from-ftp.riverforest-wp.info/media-from-ftp-add-on-exif/', 'media-from-ftp'); ?>" target="_blank" class="page-title-action"><?php _e('BUY', 'media-from-ftp'); ?></a>
|
1557 |
</div>
|
1558 |
<?php
|
1559 |
}
|
req/MediaFromFtpAjax.php
CHANGED
@@ -273,4 +273,4 @@ class MediaFromFtpAjax {
|
|
273 |
|
274 |
}
|
275 |
|
276 |
-
?>
|
273 |
|
274 |
}
|
275 |
|
276 |
+
?>
|
req/MediaFromFtpRegist.php
CHANGED
@@ -34,9 +34,9 @@ class MediaFromFtpRegist {
|
|
34 |
global $wpdb;
|
35 |
$log_name = $wpdb->prefix.'mediafromftp_log';
|
36 |
require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
$wpdb->query("DELETE FROM $log_name");
|
41 |
|
42 |
$wpdb->query("ALTER TABLE $log_name DROP thumbnail1, DROP thumbnail2, DROP thumbnail3, DROP thumbnail4, DROP thumbnail5, DROP thumbnail6");
|
34 |
global $wpdb;
|
35 |
$log_name = $wpdb->prefix.'mediafromftp_log';
|
36 |
require_once(ABSPATH . 'wp-admin/includes/upgrade.php');
|
37 |
+
$table_search = $wpdb->get_row("SHOW TABLES FROM " .DB_NAME. " LIKE '" .$log_name. "'");
|
38 |
+
if ( $wpdb->num_rows == 1 ) { // db_version 1.0, 2.0
|
39 |
+
$records = $wpdb->get_results("SELECT * FROM $log_name");
|
40 |
$wpdb->query("DELETE FROM $log_name");
|
41 |
|
42 |
$wpdb->query("ALTER TABLE $log_name DROP thumbnail1, DROP thumbnail2, DROP thumbnail3, DROP thumbnail4, DROP thumbnail5, DROP thumbnail6");
|