Media from FTP - Version 11.14

Version Description

Plugin Switching Announcement.

Download this release

Release Info

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

Code changes from version 11.13 to 11.14

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.13
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.14
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.13
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.13 =
139
  Fixed help tab.
140
 
5
  Requires at least: 3.6.0
6
  Requires PHP: 5.6
7
  Tested up to: 5.5
8
+ Stable tag: 11.14
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
135
 
136
  == Changelog ==
137
 
138
+ = 11.14 =
139
+ Plugin Switching Announcement.
140
+
141
  = 11.13 =
142
  Fixed help tab.
143
 
req/class-mediafromftpadmin.php CHANGED
@@ -447,8 +447,6 @@ class MediaFromFtpAdmin {
447
  <h3><?php esc_html_e( 'Register to media library from files that have been uploaded by FTP.', 'media-from-ftp' ); ?></h3>
448
 
449
  <?php $this->credit(); ?>
450
- <hr>
451
- <?php $this->server_path_status(); ?>
452
 
453
  </div>
454
  <?php
@@ -528,43 +526,6 @@ class MediaFromFtpAdmin {
528
 
529
  }
530
 
531
- /** ==================================================
532
- * Server Path Status
533
- *
534
- * @since 1.00
535
- */
536
- private function server_path_status() {
537
-
538
- ?>
539
- <h3><?php esc_html_e( 'Server path status', 'media-from-ftp' ); ?></h3>
540
- <h4><?php esc_html_e( 'If something goes wrong, please report the following to the support forum. If you do not want to show the Url or Path, please hide it part.', 'media-from-ftp' ); ?></h4>
541
- <?php
542
- $wp_uploads = wp_upload_dir();
543
- $mediafromftp = new MediaFromFtp();
544
- $status = "\n";
545
- $status .= 'WordPress' . "\n";
546
- $status .= 'home_url: ' . home_url() . "\n";
547
- $status .= 'ABSPATH: ' . wp_normalize_path( ABSPATH ) . "\n";
548
- $status .= 'wp_upload_dir[basedir]: ' . $wp_uploads['basedir'] . "\n";
549
- $status .= 'wp_upload_dir[baseurl]: ' . $wp_uploads['baseurl'] . "\n";
550
- $status .= 'upload_path: ' . get_option( 'upload_path' ) . "\n";
551
- $status .= 'upload_url_path: ' . get_option( 'upload_url_path' ) . "\n";
552
- $status .= 'WPINC: ' . WPINC . "\n";
553
- $status .= "\n";
554
- $status .= 'Media from FTP' . "\n";
555
- $status .= 'Upload Dir: ' . $this->upload_dir . "\n";
556
- $status .= 'Upload Url: ' . $this->upload_url . "\n";
557
- $status .= 'Upload Path: ' . $this->upload_path . "\n";
558
- $status .= 'Plugin Disallow Tmp Dir: ' . $this->plugin_disallow_tmp_dir . "\n";
559
- $status .= 'Site Url: ' . $mediafromftp->siteurl() . "\n";
560
- ?>
561
- <textarea readonly rows="16" style="font-size: 12px; width: 100%;">
562
- <?php echo esc_textarea( $status ); ?>
563
- </textarea>
564
- <?php
565
-
566
- }
567
-
568
  /** ==================================================
569
  * Sub Menu
570
  *
447
  <h3><?php esc_html_e( 'Register to media library from files that have been uploaded by FTP.', 'media-from-ftp' ); ?></h3>
448
 
449
  <?php $this->credit(); ?>
 
 
450
 
451
  </div>
452
  <?php
526
 
527
  }
528
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
529
  /** ==================================================
530
  * Sub Menu
531
  *
req/class-mediafromftpregist.php CHANGED
@@ -342,17 +342,27 @@ class MediaFromFtpRegist {
342
  ),
343
  );
344
  $dismiss_button = get_submit_button( __( 'Dismiss' ), 'small', 'Notice_Dismiss', true );
345
- if ( 11.08 == get_option( 'mediafromftp_notice' ) || 11.09 == get_option( 'mediafromftp_notice' ) ) {
346
- if ( class_exists( 'MovingMediaLibrary' ) ) {
347
- $movingmedialibrary_url = admin_url( 'admin.php?page=movingmedialibrary' );
 
 
348
  } else {
349
- if ( is_multisite() ) {
350
- $movingmedialibrary_url = network_admin_url( 'plugin-install.php?tab=plugin-information&plugin=moving-media-library' );
351
- } else {
352
- $movingmedialibrary_url = admin_url( 'plugin-install.php?tab=plugin-information&plugin=moving-media-library' );
353
- }
 
 
 
 
 
 
354
  }
355
- $movingmedialibrary_link = '<strong><a style="text-decoration: none;" href="' . $movingmedialibrary_url . '">Moving Media Library</a></strong>';
 
 
356
  if ( 11.08 == get_option( 'mediafromftp_notice' ) ) {
357
  $import_html = '<strong><a style="text-decoration: none;" href="' . admin_url( 'admin.php?page=mediafromftp-import' ) . '">' . __( 'Import' ) . '</a></strong>';
358
  ?>
@@ -389,16 +399,6 @@ class MediaFromFtpRegist {
389
  }
390
  }
391
  if ( 11.10 == get_option( 'mediafromftp_notice' ) ) {
392
- if ( class_exists( 'BulkMediaRegister' ) ) {
393
- $bulkmediaregister_url = admin_url( 'admin.php?page=bulkmediaregister' );
394
- } else {
395
- if ( is_multisite() ) {
396
- $bulkmediaregister_url = network_admin_url( 'plugin-install.php?tab=plugin-information&plugin=bulk-media-register' );
397
- } else {
398
- $bulkmediaregister_url = admin_url( 'plugin-install.php?tab=plugin-information&plugin=bulk-media-register' );
399
- }
400
- }
401
- $bulkmediaregister_link = '<strong><a style="text-decoration: none;" href="' . $bulkmediaregister_url . '">Bulk Media Register</a></strong>';
402
  $register_html = '<strong><a style="text-decoration: none;" href="' . admin_url( 'admin.php?page=mediafromftp-search-register' ) . '">' . __( 'Search & Register', 'media-from-ftp' ) . '</a></strong>';
403
  ?>
404
  <div class="notice notice-warning is-dismissible"><ul><li>
@@ -416,16 +416,6 @@ class MediaFromFtpRegist {
416
  <?php
417
  }
418
  if ( 11.11 == get_option( 'mediafromftp_notice' ) ) {
419
- if ( class_exists( 'BulkMediaRegister' ) ) {
420
- $bulkmediaregister_url = admin_url( 'admin.php?page=bulkmediaregister' );
421
- } else {
422
- if ( is_multisite() ) {
423
- $bulkmediaregister_url = network_admin_url( 'plugin-install.php?tab=plugin-information&plugin=bulk-media-register' );
424
- } else {
425
- $bulkmediaregister_url = admin_url( 'plugin-install.php?tab=plugin-information&plugin=bulk-media-register' );
426
- }
427
- }
428
- $bulkmediaregister_link = '<strong><a style="text-decoration: none;" href="' . $bulkmediaregister_url . '">Bulk Media Register</a></strong>';
429
  ?>
430
  <div class="notice notice-warning is-dismissible"><ul><li>
431
  <form method="post" action="<?php echo esc_url( $scriptname ); ?>">
@@ -441,6 +431,17 @@ class MediaFromFtpRegist {
441
  </li></ul></div>
442
  <?php
443
  }
 
 
 
 
 
 
 
 
 
 
 
444
  }
445
 
446
  }
342
  ),
343
  );
344
  $dismiss_button = get_submit_button( __( 'Dismiss' ), 'small', 'Notice_Dismiss', true );
345
+ if ( class_exists( 'MovingMediaLibrary' ) ) {
346
+ $movingmedialibrary_url = admin_url( 'admin.php?page=movingmedialibrary' );
347
+ } else {
348
+ if ( is_multisite() ) {
349
+ $movingmedialibrary_url = network_admin_url( 'plugin-install.php?tab=plugin-information&plugin=moving-media-library' );
350
  } else {
351
+ $movingmedialibrary_url = admin_url( 'plugin-install.php?tab=plugin-information&plugin=moving-media-library' );
352
+ }
353
+ }
354
+ $movingmedialibrary_link = '<strong><a style="text-decoration: none;" href="' . $movingmedialibrary_url . '">Moving Media Library</a></strong>';
355
+ if ( class_exists( 'BulkMediaRegister' ) ) {
356
+ $bulkmediaregister_url = admin_url( 'admin.php?page=bulkmediaregister' );
357
+ } else {
358
+ if ( is_multisite() ) {
359
+ $bulkmediaregister_url = network_admin_url( 'plugin-install.php?tab=plugin-information&plugin=bulk-media-register' );
360
+ } else {
361
+ $bulkmediaregister_url = admin_url( 'plugin-install.php?tab=plugin-information&plugin=bulk-media-register' );
362
  }
363
+ }
364
+ $bulkmediaregister_link = '<strong><a style="text-decoration: none;" href="' . $bulkmediaregister_url . '">Bulk Media Register</a></strong>';
365
+ if ( 11.08 == get_option( 'mediafromftp_notice' ) || 11.09 == get_option( 'mediafromftp_notice' ) ) {
366
  if ( 11.08 == get_option( 'mediafromftp_notice' ) ) {
367
  $import_html = '<strong><a style="text-decoration: none;" href="' . admin_url( 'admin.php?page=mediafromftp-import' ) . '">' . __( 'Import' ) . '</a></strong>';
368
  ?>
399
  }
400
  }
401
  if ( 11.10 == get_option( 'mediafromftp_notice' ) ) {
 
 
 
 
 
 
 
 
 
 
402
  $register_html = '<strong><a style="text-decoration: none;" href="' . admin_url( 'admin.php?page=mediafromftp-search-register' ) . '">' . __( 'Search & Register', 'media-from-ftp' ) . '</a></strong>';
403
  ?>
404
  <div class="notice notice-warning is-dismissible"><ul><li>
416
  <?php
417
  }
418
  if ( 11.11 == get_option( 'mediafromftp_notice' ) ) {
 
 
 
 
 
 
 
 
 
 
419
  ?>
420
  <div class="notice notice-warning is-dismissible"><ul><li>
421
  <form method="post" action="<?php echo esc_url( $scriptname ); ?>">
431
  </li></ul></div>
432
  <?php
433
  }
434
+ $bulk_html = '<div>' . __( 'Bulk register files on the server to the Media Library.', 'media-from-ftp' ) . ' : ' . $bulkmediaregister_link . '</div>';
435
+ $moving_html = '<div>' . __( 'Supports the transfer of Media Library between servers.', 'media-from-ftp' ) . ' : ' . $movingmedialibrary_link . '</div>';
436
+ ?>
437
+ <div class="notice notice-warning is-dismissible"><ul><li>
438
+ <?php
439
+ esc_html_e( 'This plugin will be closed eventually with no more maintenance. The next plugin is its successor. Please switch.', 'media-from-ftp' );
440
+ echo wp_kses_post( $bulk_html );
441
+ echo wp_kses_post( $moving_html );
442
+ ?>
443
+ </li></ul></div>
444
+ <?php
445
  }
446
 
447
  }