Commit 0a3ef939 authored by noplanman's avatar noplanman

Fix admin notice for networks, update screenshot with WP 5.3

parent 0fee7b54
github: noplanman
tidelift: wordpress/advanced-backwpup-s3-destinations
patreon: noplanman
liberapay: noplanman
......
......@@ -3,7 +3,7 @@
* Plugin name: Advanced S3 Destinations for BackWPup
* Plugin URI: https://git.feneas.org/noplanman/advanced-backwpup-s3-destinations
* Description: Easily add custom S3 destinations for <a href="https://backwpup.com">BackWPup</a>.
* Version: 1.0.0
* Version: 1.1.0
* Author: Armando Lüscher
* Author URI: https://noplanman.ch
* Text Domain: advanced-backwpup-s3-destinations
......@@ -29,7 +29,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
namespace NPM\BackWPupS3Destinations;
namespace NPM\AdvancedBackWPupS3Destinations;
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
......@@ -44,18 +44,24 @@ add_action( 'admin_init', function () {
) {
deactivate_plugins( plugin_basename( __FILE__ ) );
add_action( 'admin_notices', function () {
?>
<div class="notice notice-error is-dismissible">
<p><strong><?php _e( 'BackWPup or BackWPup Pro must be installed and activated!', 'advanced-backwpup-s3-destinations' ); ?></strong></p>
<p><em><?php _e( 'Advanced S3 Destinations for BackWPup has been deactivated.', 'advanced-backwpup-s3-destinations' ); ?></em></p>
</div>
<?php
unset( $_GET['activate'] );
} );
add_action( 'admin_notices', 'NPM\AdvancedBackWPupS3Destinations\admin_notice_missing_plugin' );
add_action( 'network_admin_notices', 'NPM\AdvancedBackWPupS3Destinations\admin_notice_missing_plugin' );
}
} );
/**
* Admin notice to alert about missing BackWPup plugin.
*/
function admin_notice_missing_plugin() {
?>
<div class="notice notice-error is-dismissible">
<p><strong><?php _e( 'BackWPup or BackWPup Pro must be installed and activated!', 'advanced-backwpup-s3-destinations' ); ?></strong></p>
<p><em><?php _e( 'Advanced S3 Destinations for BackWPup has been deactivated.', 'advanced-backwpup-s3-destinations' ); ?></em></p>
</div>
<?php
unset( $_GET['activate'] );
}
/**
* Fetch the saved S3 destinations.
*
......
assets/screenshot-1.png

39.4 KB | W: | H:

assets/screenshot-1.png

40 KB | W: | H:

assets/screenshot-1.png
assets/screenshot-1.png
assets/screenshot-1.png
assets/screenshot-1.png
  • 2-up
  • Swipe
  • Onion skin
......@@ -3,10 +3,10 @@
Contributors: noplanman
Donate link: https://noplanman.ch/donate
Tags: backwpup, s3, storage, destination, backup
Requires at least: 3.9
Tested up to: 5.2.2
Requires at least: 4.6
Tested up to: 5.3
Requires PHP: 5.3.3
Stable tag: 1.0.0
Stable tag: 1.1.0
Author URI: https://noplanman.ch
Plugin URI: https://git.feneas.org/noplanman/advanced-backwpup-s3-destinations
License: GPLv2 or later
......@@ -25,7 +25,7 @@ There you can add additional S3 destinations which can then be used in your jobs
= Requirements =
* WordPress 3.9 and PHP 5.3.3 required!
* WordPress 4.6 and PHP 5.3.3 required!
= Development =
......@@ -72,9 +72,15 @@ For a manual installation:
== Changelog ==
= Version 1.0.0 =
= Version 1.1.0 =
Release Date: 2019-11-12
* Fixed admin notices for network installations
* Minimum WP is now 4.6
* Tested up to WP 5.3
Release Date: July 28, 2019
= Version 1.0.0 =
Release Date: 2019-08-04
* Add new "S3 Destinations" tab to "BackWPup -> Settings" page
* Initial version
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment