Version Description
- 2016-12-13 =
- New: Mumbai and Seoul regions added
Download this release
Release Info
Developer | deliciousbrains |
Plugin | Amazon Web Services |
Version | 1.0.1 |
Comparing to | |
See all releases |
Code changes from version 1.0 to 1.0.1
- README.md +6 -3
- amazon-web-services.php +2 -2
- classes/amazon-web-services.php +5 -5
- classes/aws-plugin-base.php +42 -2
- classes/wp-aws-compatibility-check.php +2 -2
- languages/amazon-web-services-en.pot +3 -3
- readme.txt +4 -1
README.md
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
**Contributors:** bradt, deliciousbrains
|
3 |
**Tags:** amazon, amazon web services
|
4 |
**Requires at least:** 4.4
|
5 |
-
**Tested up to:** 4.
|
6 |
-
**Stable tag:** 1.0
|
7 |
**License:** GPLv3
|
8 |
|
9 |
Houses the Amazon Web Services (AWS) PHP libraries and manages access keys. Required by other AWS plugins.
|
@@ -35,7 +35,10 @@ This plugin is required by other plugins, which use its libraries and its settin
|
|
35 |
|
36 |
## Changelog ##
|
37 |
|
38 |
-
### 1.0 - 2016-
|
|
|
|
|
|
|
39 |
* Improvement: Compatibility with WP Offload S3 Lite 1.1
|
40 |
* Improvement: Compatibility with WP Offload S3 1.2
|
41 |
|
2 |
**Contributors:** bradt, deliciousbrains
|
3 |
**Tags:** amazon, amazon web services
|
4 |
**Requires at least:** 4.4
|
5 |
+
**Tested up to:** 4.7
|
6 |
+
**Stable tag:** 1.0.1
|
7 |
**License:** GPLv3
|
8 |
|
9 |
Houses the Amazon Web Services (AWS) PHP libraries and manages access keys. Required by other AWS plugins.
|
35 |
|
36 |
## Changelog ##
|
37 |
|
38 |
+
### 1.0.1 - 2016-12-13 ###
|
39 |
+
* New: Mumbai and Seoul regions added
|
40 |
+
|
41 |
+
### 1.0 - 2016-09-29 ###
|
42 |
* Improvement: Compatibility with WP Offload S3 Lite 1.1
|
43 |
* Improvement: Compatibility with WP Offload S3 1.2
|
44 |
|
amazon-web-services.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Amazon Web Services
|
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/amazon-web-services/
|
5 |
Description: Includes the Amazon Web Services PHP libraries, stores access keys, and allows other plugins to hook into it.
|
6 |
Author: Delicious Brains
|
7 |
-
Version: 1.0
|
8 |
Author URI: http://deliciousbrains.com/
|
9 |
Network: True
|
10 |
Text Domain: amazon-web-services
|
@@ -22,7 +22,7 @@ Domain Path: /languages/
|
|
22 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
23 |
// **********************************************************************
|
24 |
|
25 |
-
$GLOBALS['aws_meta']['amazon-web-services']['version'] = '1.0';
|
26 |
|
27 |
$GLOBALS['aws_meta']['amazon-web-services']['supported_addon_versions'] = array(
|
28 |
'amazon-s3-and-cloudfront' => '0.9',
|
4 |
Plugin URI: http://wordpress.org/extend/plugins/amazon-web-services/
|
5 |
Description: Includes the Amazon Web Services PHP libraries, stores access keys, and allows other plugins to hook into it.
|
6 |
Author: Delicious Brains
|
7 |
+
Version: 1.0.1
|
8 |
Author URI: http://deliciousbrains.com/
|
9 |
Network: True
|
10 |
Text Domain: amazon-web-services
|
22 |
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
23 |
// **********************************************************************
|
24 |
|
25 |
+
$GLOBALS['aws_meta']['amazon-web-services']['version'] = '1.0.1';
|
26 |
|
27 |
$GLOBALS['aws_meta']['amazon-web-services']['supported_addon_versions'] = array(
|
28 |
'amazon-s3-and-cloudfront' => '0.9',
|
classes/amazon-web-services.php
CHANGED
@@ -458,13 +458,13 @@ class Amazon_Web_Services extends AWS_Plugin_Base {
|
|
458 |
$activated = $this->is_plugin_activated( $slug );
|
459 |
|
460 |
if ( $installed && $activated ) {
|
461 |
-
echo '<li>' . esc_html( _x( 'Installed & Activated', 'Plugin already installed and activated', 'amazon-web-services' ) ) . '</li>';
|
462 |
} elseif ( $installed ) {
|
463 |
-
echo '<li>' . esc_html( _x( 'Installed', 'Plugin already installed', 'amazon-web-services' ) ) . '</li>';
|
464 |
-
echo '<li><a href="' . esc_url( $this->get_plugin_activate_url( $slug ) ) . '">' . esc_html( _x( 'Activate Now', 'Activate plugin now', 'amazon-web-services' ) ) . '</a></li>';
|
465 |
} else {
|
466 |
if ( isset( $addon['install'] ) && $addon['install'] ) {
|
467 |
-
echo '<li><a href="' . esc_url( $this->get_plugin_install_url( $slug ) ) . '">' . esc_html( _x( 'Install Now', 'Install plugin now', 'amazon-web-services' ) ) . '</a></li>';
|
468 |
}
|
469 |
}
|
470 |
|
@@ -508,7 +508,7 @@ class Amazon_Web_Services extends AWS_Plugin_Base {
|
|
508 |
$class = 'thickbox';
|
509 |
}
|
510 |
|
511 |
-
echo '<li><a class="' . $class . '" href="' . esc_url( $url ) . '">' . esc_html( $title ) . '</a></li>';
|
512 |
}
|
513 |
|
514 |
/**
|
458 |
$activated = $this->is_plugin_activated( $slug );
|
459 |
|
460 |
if ( $installed && $activated ) {
|
461 |
+
echo '<li class="installed activated">' . esc_html( _x( 'Installed & Activated', 'Plugin already installed and activated', 'amazon-web-services' ) ) . '</li>';
|
462 |
} elseif ( $installed ) {
|
463 |
+
echo '<li class="installed">' . esc_html( _x( 'Installed', 'Plugin already installed', 'amazon-web-services' ) ) . '</li>';
|
464 |
+
echo '<li class="activate"><a href="' . esc_url( $this->get_plugin_activate_url( $slug ) ) . '">' . esc_html( _x( 'Activate Now', 'Activate plugin now', 'amazon-web-services' ) ) . '</a></li>';
|
465 |
} else {
|
466 |
if ( isset( $addon['install'] ) && $addon['install'] ) {
|
467 |
+
echo '<li class="install"><a href="' . esc_url( $this->get_plugin_install_url( $slug ) ) . '">' . esc_html( _x( 'Install Now', 'Install plugin now', 'amazon-web-services' ) ) . '</a></li>';
|
468 |
}
|
469 |
}
|
470 |
|
508 |
$class = 'thickbox';
|
509 |
}
|
510 |
|
511 |
+
echo '<li class="visit-site"><a class="' . $class . '" href="' . esc_url( $url ) . '">' . esc_html( $title ) . '</a></li>';
|
512 |
}
|
513 |
|
514 |
/**
|
classes/aws-plugin-base.php
CHANGED
@@ -257,8 +257,25 @@ class AWS_Plugin_Base {
|
|
257 |
/**
|
258 |
* Save the settings to the database
|
259 |
*/
|
260 |
-
function save_settings() {
|
261 |
-
update_site_option( static::SETTINGS_KEY, $this->settings );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
262 |
}
|
263 |
|
264 |
/**
|
@@ -319,4 +336,27 @@ class AWS_Plugin_Base {
|
|
319 |
public function get_asset_suffix() {
|
320 |
return defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
321 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
322 |
}
|
257 |
/**
|
258 |
* Save the settings to the database
|
259 |
*/
|
260 |
+
public function save_settings() {
|
261 |
+
$this->update_site_option( static::SETTINGS_KEY, $this->settings );
|
262 |
+
}
|
263 |
+
|
264 |
+
/**
|
265 |
+
* Update site option.
|
266 |
+
*
|
267 |
+
* @param string $option
|
268 |
+
* @param mixed $value
|
269 |
+
* @param bool $autoload
|
270 |
+
*
|
271 |
+
* @return bool
|
272 |
+
*/
|
273 |
+
public function update_site_option( $option, $value, $autoload = true ) {
|
274 |
+
if ( is_multisite() ) {
|
275 |
+
return update_site_option( $option, $value );
|
276 |
+
}
|
277 |
+
|
278 |
+
return update_option( $option, $value, $autoload );
|
279 |
}
|
280 |
|
281 |
/**
|
336 |
public function get_asset_suffix() {
|
337 |
return defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
338 |
}
|
339 |
+
|
340 |
+
/**
|
341 |
+
* Get all AWS regions
|
342 |
+
*
|
343 |
+
* @return array
|
344 |
+
*/
|
345 |
+
public function get_aws_regions() {
|
346 |
+
$regions = array(
|
347 |
+
'us-east-1' => 'US Standard',
|
348 |
+
'us-west-1' => 'Northern California',
|
349 |
+
'us-west-2' => 'Oregon',
|
350 |
+
'eu-west-1' => 'Ireland',
|
351 |
+
'eu-central-1' => 'Frankfurt',
|
352 |
+
'ap-southeast-1' => 'Singapore',
|
353 |
+
'ap-southeast-2' => 'Sydney',
|
354 |
+
'ap-northeast-1' => 'Tokyo',
|
355 |
+
'ap-south-1' => 'Mumbai',
|
356 |
+
'ap-northeast-2' => 'Seoul',
|
357 |
+
'sa-east-1' => 'Sao Paulo',
|
358 |
+
);
|
359 |
+
|
360 |
+
return apply_filters( 'aws_get_regions', $regions );
|
361 |
+
}
|
362 |
}
|
classes/wp-aws-compatibility-check.php
CHANGED
@@ -332,7 +332,7 @@ if ( ! class_exists( 'WP_AWS_Compatibility_Check' ) ) {
|
|
332 |
} else {
|
333 |
$msg .= ' ' . __( 'It appears to be installed already.', 'amazon-web-services' );
|
334 |
$activate_url = $this->get_plugin_action_url( 'activate', $parent_basename );
|
335 |
-
$msg .= ' <a style="font-weight:bold;text-decoration:none;" href="' . $activate_url . '">' . _x( 'Activate it now.', 'Activate plugin', 'amazon-web-services' ) . '</a>';
|
336 |
}
|
337 |
} else {
|
338 |
$install_url = 'https://deliciousbrains.com/my-account/';
|
@@ -479,7 +479,7 @@ if ( ! class_exists( 'WP_AWS_Compatibility_Check' ) ) {
|
|
479 |
* @param string $message
|
480 |
*/
|
481 |
function render_notice( $message ) {
|
482 |
-
printf( '<div class="' . $this->notice_class . ' aws-compatibility-notice"><p>%s</p></div>', $message );
|
483 |
}
|
484 |
|
485 |
/**
|
332 |
} else {
|
333 |
$msg .= ' ' . __( 'It appears to be installed already.', 'amazon-web-services' );
|
334 |
$activate_url = $this->get_plugin_action_url( 'activate', $parent_basename );
|
335 |
+
$msg .= ' <a id="'. $this->plugin_slug . '-activate-parent" style="font-weight:bold;text-decoration:none;" href="' . $activate_url . '">' . _x( 'Activate it now.', 'Activate plugin', 'amazon-web-services' ) . '</a>';
|
336 |
}
|
337 |
} else {
|
338 |
$install_url = 'https://deliciousbrains.com/my-account/';
|
479 |
* @param string $message
|
480 |
*/
|
481 |
function render_notice( $message ) {
|
482 |
+
printf( '<div id="aws-compat-notice' . $this->plugin_slug . '" class="' . $this->notice_class . ' aws-compatibility-notice"><p>%s</p></div>', $message );
|
483 |
}
|
484 |
|
485 |
/**
|
languages/amazon-web-services-en.pot
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
# SOME DESCRIPTIVE TITLE.
|
2 |
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
3 |
-
# This file is distributed under the same license as the
|
4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
5 |
#
|
6 |
#, fuzzy
|
@@ -8,7 +8,7 @@ msgid ""
|
|
8 |
msgstr ""
|
9 |
"Project-Id-Version: amazon-web-services\n"
|
10 |
"Report-Msgid-Bugs-To: nom@deliciousbrains.com\n"
|
11 |
-
"POT-Creation-Date: 2016-
|
12 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
@@ -154,7 +154,7 @@ msgid ""
|
|
154 |
"7.16.2+ compiled with OpenSSL and zlib. Your server currently has"
|
155 |
msgstr ""
|
156 |
|
157 |
-
#: classes/aws-plugin-base.php:
|
158 |
msgid "Settings"
|
159 |
msgstr ""
|
160 |
|
1 |
# SOME DESCRIPTIVE TITLE.
|
2 |
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
3 |
+
# This file is distributed under the same license as the amazon-web-services package.
|
4 |
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
5 |
#
|
6 |
#, fuzzy
|
8 |
msgstr ""
|
9 |
"Project-Id-Version: amazon-web-services\n"
|
10 |
"Report-Msgid-Bugs-To: nom@deliciousbrains.com\n"
|
11 |
+
"POT-Creation-Date: 2016-12-13 11:33+0000\n"
|
12 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
13 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
14 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
154 |
"7.16.2+ compiled with OpenSSL and zlib. Your server currently has"
|
155 |
msgstr ""
|
156 |
|
157 |
+
#: classes/aws-plugin-base.php:296
|
158 |
msgid "Settings"
|
159 |
msgstr ""
|
160 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: bradt, deliciousbrains
|
|
3 |
Tags: amazon, amazon web services
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 4.7
|
6 |
-
Stable tag: 1.0
|
7 |
License: GPLv3
|
8 |
|
9 |
Houses the Amazon Web Services (AWS) PHP libraries and manages access keys. Required by other AWS plugins.
|
@@ -33,6 +33,9 @@ This plugin is required by other plugins, which use its libraries and its settin
|
|
33 |
|
34 |
== Changelog ==
|
35 |
|
|
|
|
|
|
|
36 |
= 1.0 - 2016-09-29 =
|
37 |
* Improvement: Compatibility with WP Offload S3 Lite 1.1
|
38 |
* Improvement: Compatibility with WP Offload S3 1.2
|
3 |
Tags: amazon, amazon web services
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 4.7
|
6 |
+
Stable tag: 1.0.1
|
7 |
License: GPLv3
|
8 |
|
9 |
Houses the Amazon Web Services (AWS) PHP libraries and manages access keys. Required by other AWS plugins.
|
33 |
|
34 |
== Changelog ==
|
35 |
|
36 |
+
= 1.0.1 - 2016-12-13 =
|
37 |
+
* New: Mumbai and Seoul regions added
|
38 |
+
|
39 |
= 1.0 - 2016-09-29 =
|
40 |
* Improvement: Compatibility with WP Offload S3 Lite 1.1
|
41 |
* Improvement: Compatibility with WP Offload S3 1.2
|