Version Description
- 2016-09-01 =
- Improvement: No longer delete plugin data on uninstall. Manual removal possible, as per this doc.
Download this release
Release Info
Developer | deliciousbrains |
Plugin | Amazon Web Services |
Version | 0.3.7 |
Comparing to | |
See all releases |
Code changes from version 0.3.6 to 0.3.7
- README.md +3 -0
- amazon-web-services.php +2 -2
- classes/wp-aws-uninstall.php +0 -263
- languages/amazon-web-services-en.pot +67 -67
- readme.txt +4 -1
- uninstall.php +0 -19
README.md
CHANGED
@@ -35,6 +35,9 @@ This plugin is required by other plugins, which use its libraries and its settin
|
|
35 |
|
36 |
## Changelog ##
|
37 |
|
|
|
|
|
|
|
38 |
### 0.3.6 - 2016-05-30 ###
|
39 |
* Improvement: Now checks that the `curl_multi_exec` function is available.
|
40 |
|
35 |
|
36 |
## Changelog ##
|
37 |
|
38 |
+
### 0.3.7 - 2016-09-01 ###
|
39 |
+
* Improvement: No longer delete plugin data on uninstall. Manual removal possible, as per this [doc](https://deliciousbrains.com/wp-offload-s3/doc/uninstall/).
|
40 |
+
|
41 |
### 0.3.6 - 2016-05-30 ###
|
42 |
* Improvement: Now checks that the `curl_multi_exec` function is available.
|
43 |
|
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: 0.3.
|
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'] = '0.3.
|
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: 0.3.7
|
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'] = '0.3.7';
|
26 |
|
27 |
$GLOBALS['aws_meta']['amazon-web-services']['supported_addon_versions'] = array(
|
28 |
'amazon-s3-and-cloudfront' => '0.9',
|
classes/wp-aws-uninstall.php
DELETED
@@ -1,263 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* WP AWS Uninstall
|
4 |
-
*
|
5 |
-
* @package wp-aws
|
6 |
-
* @copyright Copyright (c) 2015, Delicious Brains
|
7 |
-
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
8 |
-
* @since 0.1
|
9 |
-
*/
|
10 |
-
|
11 |
-
// Exit if accessed directly
|
12 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
13 |
-
exit;
|
14 |
-
}
|
15 |
-
|
16 |
-
// Check if already defined
|
17 |
-
if ( ! class_exists( 'WP_AWS_Uninstall' ) ) {
|
18 |
-
|
19 |
-
/**
|
20 |
-
* WP_AWS_Uninstall Class
|
21 |
-
*
|
22 |
-
* This class handles shared functions for uninstalling AWS plugins
|
23 |
-
*
|
24 |
-
* @since 0.1
|
25 |
-
*/
|
26 |
-
class WP_AWS_Uninstall {
|
27 |
-
|
28 |
-
/**
|
29 |
-
* @var array|string Options to be deleted
|
30 |
-
*/
|
31 |
-
protected $options;
|
32 |
-
|
33 |
-
/**
|
34 |
-
* @var array|string Post meta to be deleted
|
35 |
-
*/
|
36 |
-
protected $postmeta;
|
37 |
-
|
38 |
-
/**
|
39 |
-
* @var array|string Cron hooks to be unscheduled
|
40 |
-
*/
|
41 |
-
protected $crons;
|
42 |
-
|
43 |
-
/**
|
44 |
-
* @var array|string Transients to be deleted, this can be site wide and subsite, e.g.
|
45 |
-
*
|
46 |
-
* array(
|
47 |
-
* 'site' => array(...),
|
48 |
-
* 'subsite' => array(...),
|
49 |
-
* )
|
50 |
-
*
|
51 |
-
* By default, an array of transients will be treated as site wide.
|
52 |
-
*
|
53 |
-
*/
|
54 |
-
protected $transients;
|
55 |
-
|
56 |
-
/**
|
57 |
-
* @var array|string User meta to be deleted
|
58 |
-
*/
|
59 |
-
protected $usermeta;
|
60 |
-
|
61 |
-
/**
|
62 |
-
* @var array Blog(s) in site
|
63 |
-
*/
|
64 |
-
protected $blog_ids;
|
65 |
-
|
66 |
-
/**
|
67 |
-
* WP_AWS_Uninstall constructor.
|
68 |
-
*
|
69 |
-
* @param array|string $options
|
70 |
-
* @param array|string $postmeta
|
71 |
-
* @param array|string $crons
|
72 |
-
* @param array|string $transients
|
73 |
-
* @param array|string $usermeta
|
74 |
-
*/
|
75 |
-
public function __construct(
|
76 |
-
$options = array(),
|
77 |
-
$postmeta = array(),
|
78 |
-
$crons = array(),
|
79 |
-
$transients = array(),
|
80 |
-
$usermeta = array()
|
81 |
-
) {
|
82 |
-
$this->options = $this->maybe_convert_to_array( $options );
|
83 |
-
$this->postmeta = $this->maybe_convert_to_array( $postmeta );
|
84 |
-
$this->crons = $this->maybe_convert_to_array( $crons );
|
85 |
-
$this->transients = $this->maybe_convert_to_array( $transients );
|
86 |
-
$this->usermeta = $this->maybe_convert_to_array( $usermeta );
|
87 |
-
|
88 |
-
$this->set_blog_ids();
|
89 |
-
|
90 |
-
$this->delete_options();
|
91 |
-
$this->delete_postmeta();
|
92 |
-
$this->clear_crons();
|
93 |
-
$this->delete_transients();
|
94 |
-
$this->delete_usermeta();
|
95 |
-
}
|
96 |
-
|
97 |
-
/**
|
98 |
-
* Set the blog id(s) for a site
|
99 |
-
*/
|
100 |
-
private function set_blog_ids() {
|
101 |
-
$blog_ids = array( 1 );
|
102 |
-
if ( function_exists( 'is_multisite' ) && is_multisite() ) {
|
103 |
-
$args = array(
|
104 |
-
'limit' => false,
|
105 |
-
'spam' => 0,
|
106 |
-
'deleted' => 0,
|
107 |
-
'archived' => 0,
|
108 |
-
);
|
109 |
-
$blogs = wp_get_sites( $args );
|
110 |
-
$blog_ids = wp_list_pluck( $blogs, 'blog_id' );
|
111 |
-
}
|
112 |
-
|
113 |
-
$this->blog_ids = $blog_ids;
|
114 |
-
}
|
115 |
-
|
116 |
-
/**
|
117 |
-
* Is the current blog ID that specified in wp-config.php
|
118 |
-
*
|
119 |
-
* @param int $blog_id
|
120 |
-
*
|
121 |
-
* @return bool
|
122 |
-
*/
|
123 |
-
private function is_current_blog( $blog_id ) {
|
124 |
-
$default = defined( 'BLOG_ID_CURRENT_SITE' ) ? BLOG_ID_CURRENT_SITE : 1;
|
125 |
-
|
126 |
-
if ( $default === $blog_id ) {
|
127 |
-
return true;
|
128 |
-
}
|
129 |
-
|
130 |
-
return false;
|
131 |
-
}
|
132 |
-
|
133 |
-
/**
|
134 |
-
* Helper to ensure a value is an array
|
135 |
-
*
|
136 |
-
* @param array|string $data
|
137 |
-
*
|
138 |
-
* @return array
|
139 |
-
*/
|
140 |
-
private function maybe_convert_to_array( $data ) {
|
141 |
-
if ( ! is_array( $data ) ) {
|
142 |
-
// Convert a string to an array
|
143 |
-
$data = array( $data );
|
144 |
-
}
|
145 |
-
|
146 |
-
return $data;
|
147 |
-
}
|
148 |
-
|
149 |
-
/**
|
150 |
-
* Delete site wide options
|
151 |
-
*/
|
152 |
-
public function delete_options() {
|
153 |
-
foreach ( $this->options as $option ) {
|
154 |
-
delete_site_option( $option );
|
155 |
-
}
|
156 |
-
}
|
157 |
-
|
158 |
-
/**
|
159 |
-
* Delete post meta data for all blogs
|
160 |
-
*/
|
161 |
-
public function delete_postmeta() {
|
162 |
-
global $wpdb;
|
163 |
-
|
164 |
-
foreach ( $this->blog_ids as $blog_id ) {
|
165 |
-
$prefix = $wpdb->get_blog_prefix( $blog_id );
|
166 |
-
|
167 |
-
foreach ( $this->postmeta as $postmeta ) {
|
168 |
-
$sql = $wpdb->prepare( "DELETE FROM {$prefix}postmeta WHERE meta_key = %s", $postmeta );
|
169 |
-
$wpdb->query( $sql );
|
170 |
-
}
|
171 |
-
}
|
172 |
-
}
|
173 |
-
|
174 |
-
/**
|
175 |
-
* Clear any scheduled cron jobs
|
176 |
-
*/
|
177 |
-
public function clear_crons() {
|
178 |
-
foreach ( $this->crons as $cron ) {
|
179 |
-
$timestamp = wp_next_scheduled( $cron );
|
180 |
-
if ( $timestamp ) {
|
181 |
-
wp_unschedule_event( $timestamp, $cron );
|
182 |
-
}
|
183 |
-
}
|
184 |
-
}
|
185 |
-
|
186 |
-
/**
|
187 |
-
* Delete transients
|
188 |
-
*/
|
189 |
-
public function delete_transients() {
|
190 |
-
if ( ! isset( $this->transients['site'] ) && ! isset( $this->transients['subsite'] ) ) {
|
191 |
-
// Single array of site wide transients
|
192 |
-
foreach ( $this->transients as $transient ) {
|
193 |
-
delete_site_transient( $transient );
|
194 |
-
}
|
195 |
-
|
196 |
-
return;
|
197 |
-
}
|
198 |
-
|
199 |
-
// Deal with site wide transients
|
200 |
-
if ( isset( $this->transients['site'] ) ) {
|
201 |
-
$site_transients = $this->maybe_convert_to_array( $this->transients['site'] );
|
202 |
-
|
203 |
-
foreach ( $site_transients as $transient ) {
|
204 |
-
delete_site_transient( $transient );
|
205 |
-
}
|
206 |
-
}
|
207 |
-
|
208 |
-
// Deal with subsite specific transients
|
209 |
-
if ( isset( $this->transients['subsite'] ) ) {
|
210 |
-
$subsite_transients = $this->maybe_convert_to_array( $this->transients['subsite'] );
|
211 |
-
|
212 |
-
foreach ( $this->blog_ids as $blog_id ) {
|
213 |
-
if ( is_multisite() && $blog_id !== get_current_blog_id() ) {
|
214 |
-
switch_to_blog( $blog_id );
|
215 |
-
}
|
216 |
-
|
217 |
-
foreach ( $subsite_transients as $transient ) {
|
218 |
-
delete_transient( $transient );
|
219 |
-
}
|
220 |
-
|
221 |
-
if ( is_multisite() ) {
|
222 |
-
restore_current_blog();
|
223 |
-
}
|
224 |
-
}
|
225 |
-
}
|
226 |
-
}
|
227 |
-
|
228 |
-
/**
|
229 |
-
* Delete user meta.
|
230 |
-
*/
|
231 |
-
public function delete_usermeta() {
|
232 |
-
global $wpdb;
|
233 |
-
|
234 |
-
if ( empty( $this->usermeta ) ) {
|
235 |
-
return;
|
236 |
-
}
|
237 |
-
|
238 |
-
// Loop through our user meta keys to create our WHERE clauses.
|
239 |
-
$where_array = array();
|
240 |
-
foreach ( $this->usermeta as $usermeta ) {
|
241 |
-
$where_array[] = $wpdb->prepare( "meta_key = '%s'", $usermeta );
|
242 |
-
}
|
243 |
-
|
244 |
-
// Merge all WHERE clauses into an OR comparison.
|
245 |
-
$where_sql = implode( ' OR ', $where_array );
|
246 |
-
|
247 |
-
// Get any user ids that have keys to be deleted.
|
248 |
-
$user_ids = $wpdb->get_col( "SELECT DISTINCT user_id FROM {$wpdb->usermeta} WHERE {$where_sql}" );
|
249 |
-
|
250 |
-
// Bail if no user has keys to be deleted.
|
251 |
-
if ( empty( $user_ids ) ) {
|
252 |
-
return;
|
253 |
-
}
|
254 |
-
|
255 |
-
// Loop through the list of users and delete our user meta.
|
256 |
-
foreach ( $user_ids as $user_id ) {
|
257 |
-
foreach ( $this->usermeta as $usermeta ) {
|
258 |
-
delete_user_meta( $user_id, $usermeta );
|
259 |
-
}
|
260 |
-
}
|
261 |
-
}
|
262 |
-
}
|
263 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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"
|
@@ -17,271 +17,271 @@ msgstr ""
|
|
17 |
"Content-Type: text/plain; charset=CHARSET\n"
|
18 |
"Content-Transfer-Encoding: 8bit\n"
|
19 |
|
20 |
-
#:
|
21 |
-
#:
|
22 |
msgid "Amazon Web Services"
|
23 |
msgstr ""
|
24 |
|
25 |
-
#:
|
26 |
msgid "AWS"
|
27 |
msgstr ""
|
28 |
|
29 |
-
#:
|
30 |
msgid "Addons"
|
31 |
msgstr ""
|
32 |
|
33 |
-
#:
|
34 |
-
#:
|
35 |
-
#:
|
36 |
msgid "Access Keys"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#:
|
40 |
msgid "Cheatin' eh?"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#:
|
44 |
msgid "Amazon Web Services: Addons"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#:
|
48 |
#, php-format
|
49 |
msgid ""
|
50 |
"You must first <a href=\"%s\">set your AWS access keys</a> to use this addon."
|
51 |
msgstr ""
|
52 |
|
53 |
-
#:
|
54 |
msgid "WP Offload S3 Lite"
|
55 |
msgstr ""
|
56 |
|
57 |
-
#:
|
58 |
msgid "WP Offload S3"
|
59 |
msgstr ""
|
60 |
|
61 |
-
#:
|
62 |
msgid "Assets"
|
63 |
msgstr ""
|
64 |
|
65 |
-
#:
|
66 |
msgid "Feature"
|
67 |
msgstr ""
|
68 |
|
69 |
-
#:
|
70 |
msgid "WooCommerce"
|
71 |
msgstr ""
|
72 |
|
73 |
-
#:
|
74 |
-
#:
|
75 |
-
#:
|
76 |
-
#:
|
77 |
-
#:
|
78 |
-
#:
|
79 |
msgid "Integration"
|
80 |
msgstr ""
|
81 |
|
82 |
-
#:
|
83 |
msgid "Easy Digital Downloads"
|
84 |
msgstr ""
|
85 |
|
86 |
-
#:
|
87 |
msgid "WPML"
|
88 |
msgstr ""
|
89 |
|
90 |
-
#:
|
91 |
msgid "Meta Slider"
|
92 |
msgstr ""
|
93 |
|
94 |
-
#:
|
95 |
msgid "Enable Media Replace"
|
96 |
msgstr ""
|
97 |
|
98 |
-
#:
|
99 |
msgid "ACF Image Crop"
|
100 |
msgstr ""
|
101 |
|
102 |
-
#:
|
103 |
msgctxt "Plugin already installed and activated"
|
104 |
msgid "Installed & Activated"
|
105 |
msgstr ""
|
106 |
|
107 |
-
#:
|
108 |
msgctxt "Plugin already installed"
|
109 |
msgid "Installed"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#:
|
113 |
msgctxt "Activate plugin now"
|
114 |
msgid "Activate Now"
|
115 |
msgstr ""
|
116 |
|
117 |
-
#:
|
118 |
msgctxt "Install plugin now"
|
119 |
msgid "Install Now"
|
120 |
msgstr ""
|
121 |
|
122 |
-
#:
|
123 |
msgid "Visit Site"
|
124 |
msgstr ""
|
125 |
|
126 |
-
#:
|
127 |
msgctxt "View plugin details"
|
128 |
msgid "View Details"
|
129 |
msgstr ""
|
130 |
|
131 |
-
#:
|
132 |
msgid "a PHP version less than 5.3.3"
|
133 |
msgstr ""
|
134 |
|
135 |
-
#:
|
136 |
msgid "no PHP cURL library activated"
|
137 |
msgstr ""
|
138 |
|
139 |
-
#:
|
140 |
msgid "a cURL version less than 7.16.2"
|
141 |
msgstr ""
|
142 |
|
143 |
-
#:
|
144 |
msgid "cURL compiled without"
|
145 |
msgstr ""
|
146 |
|
147 |
-
#:
|
148 |
msgid "the function curl_multi_exec disabled"
|
149 |
msgstr ""
|
150 |
|
151 |
-
#:
|
152 |
msgid ""
|
153 |
"The official Amazon Web Services SDK requires PHP 5.3.3+ and cURL "
|
154 |
"7.16.2+ compiled with OpenSSL and zlib. Your server currently has"
|
155 |
msgstr ""
|
156 |
|
157 |
-
#:
|
158 |
msgid "Settings"
|
159 |
msgstr ""
|
160 |
|
161 |
-
#:
|
162 |
msgid "deactivate"
|
163 |
msgstr ""
|
164 |
|
165 |
-
#:
|
166 |
#, php-format
|
167 |
msgid "You can %s the %s plugin to get rid of this notice."
|
168 |
msgstr ""
|
169 |
|
170 |
-
#:
|
171 |
#, php-format
|
172 |
msgid "%s has been disabled as it requires the %s plugin."
|
173 |
msgstr ""
|
174 |
|
175 |
-
#:
|
176 |
msgid "which is currently disabled."
|
177 |
msgstr ""
|
178 |
|
179 |
-
#:
|
180 |
msgid "It appears to be installed already."
|
181 |
msgstr ""
|
182 |
|
183 |
-
#:
|
184 |
msgctxt "Activate plugin"
|
185 |
msgid "Activate it now."
|
186 |
msgstr ""
|
187 |
|
188 |
-
#:
|
189 |
#, php-format
|
190 |
msgid "<a href=\"%s\">Install</a> and activate it."
|
191 |
msgstr ""
|
192 |
|
193 |
-
#:
|
194 |
#, php-format
|
195 |
msgid ""
|
196 |
"%s has been disabled as it requires version %s or later of the %s plugin."
|
197 |
msgstr ""
|
198 |
|
199 |
-
#:
|
200 |
#, php-format
|
201 |
msgid "You currently have version %s installed."
|
202 |
msgstr ""
|
203 |
|
204 |
-
#:
|
205 |
-
#:
|
206 |
#, php-format
|
207 |
msgid "A valid license for %s is required to update."
|
208 |
msgstr ""
|
209 |
|
210 |
-
#:
|
211 |
msgid "Update to the latest version"
|
212 |
msgstr ""
|
213 |
|
214 |
-
#:
|
215 |
#, php-format
|
216 |
msgid ""
|
217 |
"%1$s has been disabled because it is not a supported addon of the %2$s "
|
218 |
"plugin."
|
219 |
msgstr ""
|
220 |
|
221 |
-
#:
|
222 |
#, php-format
|
223 |
msgid ""
|
224 |
"%1$s has been disabled because it will not work with the version of the %2$s "
|
225 |
"plugin installed. %1$s %3$s or later is required."
|
226 |
msgstr ""
|
227 |
|
228 |
-
#:
|
229 |
#, php-format
|
230 |
msgid "Update %s to the latest version"
|
231 |
msgstr ""
|
232 |
|
233 |
-
#:
|
234 |
#, php-format
|
235 |
msgid "The %s plugin has been deactivated."
|
236 |
msgstr ""
|
237 |
|
238 |
-
#:
|
239 |
msgid "Activation Error"
|
240 |
msgstr ""
|
241 |
|
242 |
-
#:
|
243 |
#, php-format
|
244 |
msgid ""
|
245 |
"Need help getting your Access Keys? <a href=\"%s\">Check out the Quick Start "
|
246 |
"Guide →</a>"
|
247 |
msgstr ""
|
248 |
|
249 |
-
#:
|
250 |
msgid "You have enabled the use of IAM roles for Amazon EC2 instances."
|
251 |
msgstr ""
|
252 |
|
253 |
-
#:
|
254 |
msgid ""
|
255 |
"You’ve already defined your AWS access keys in your wp-config.php. If "
|
256 |
"you’d prefer to manage them here and store them in the database (not "
|
257 |
"recommended), simply remove the lines from your wp-config."
|
258 |
msgstr ""
|
259 |
|
260 |
-
#:
|
261 |
msgid ""
|
262 |
"We recommend defining your Access Keys in wp-config.php so long as you "
|
263 |
"don’t commit it to source control (you shouldn’t be). Simply "
|
264 |
"copy the following snippet and replace the stars with the keys."
|
265 |
msgstr ""
|
266 |
|
267 |
-
#:
|
268 |
msgid ""
|
269 |
"If you’d rather store your Access Keys in the database, <a href="
|
270 |
"\"\">click here to reveal a form.</a>"
|
271 |
msgstr ""
|
272 |
|
273 |
-
#:
|
274 |
msgid "Access Key ID:"
|
275 |
msgstr ""
|
276 |
|
277 |
-
#:
|
278 |
msgid "Secret Access Key:"
|
279 |
msgstr ""
|
280 |
|
281 |
-
#:
|
282 |
msgid "Save Changes"
|
283 |
msgstr ""
|
284 |
|
285 |
-
#:
|
286 |
msgid "Remove Keys"
|
287 |
msgstr ""
|
1 |
# SOME DESCRIPTIVE TITLE.
|
2 |
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
3 |
+
# This file is distributed under the same license as the PACKAGE 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-09-01 14:41+0100\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"
|
17 |
"Content-Type: text/plain; charset=CHARSET\n"
|
18 |
"Content-Transfer-Encoding: 8bit\n"
|
19 |
|
20 |
+
#: classes/amazon-web-services.php:51
|
21 |
+
#: classes/amazon-web-services.php:195
|
22 |
msgid "Amazon Web Services"
|
23 |
msgstr ""
|
24 |
|
25 |
+
#: classes/amazon-web-services.php:52
|
26 |
msgid "AWS"
|
27 |
msgstr ""
|
28 |
|
29 |
+
#: classes/amazon-web-services.php:75
|
30 |
msgid "Addons"
|
31 |
msgstr ""
|
32 |
|
33 |
+
#: classes/amazon-web-services.php:83
|
34 |
+
#: classes/amazon-web-services.php:349
|
35 |
+
#: view/settings.php:14
|
36 |
msgid "Access Keys"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: classes/amazon-web-services.php:153
|
40 |
msgid "Cheatin' eh?"
|
41 |
msgstr ""
|
42 |
|
43 |
+
#: classes/amazon-web-services.php:204
|
44 |
msgid "Amazon Web Services: Addons"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: classes/amazon-web-services.php:297
|
48 |
#, php-format
|
49 |
msgid ""
|
50 |
"You must first <a href=\"%s\">set your AWS access keys</a> to use this addon."
|
51 |
msgstr ""
|
52 |
|
53 |
+
#: classes/amazon-web-services.php:362
|
54 |
msgid "WP Offload S3 Lite"
|
55 |
msgstr ""
|
56 |
|
57 |
+
#: classes/amazon-web-services.php:367
|
58 |
msgid "WP Offload S3"
|
59 |
msgstr ""
|
60 |
|
61 |
+
#: classes/amazon-web-services.php:371
|
62 |
msgid "Assets"
|
63 |
msgstr ""
|
64 |
|
65 |
+
#: classes/amazon-web-services.php:373
|
66 |
msgid "Feature"
|
67 |
msgstr ""
|
68 |
|
69 |
+
#: classes/amazon-web-services.php:377
|
70 |
msgid "WooCommerce"
|
71 |
msgstr ""
|
72 |
|
73 |
+
#: classes/amazon-web-services.php:379
|
74 |
+
#: classes/amazon-web-services.php:386
|
75 |
+
#: classes/amazon-web-services.php:393
|
76 |
+
#: classes/amazon-web-services.php:400
|
77 |
+
#: classes/amazon-web-services.php:407
|
78 |
+
#: classes/amazon-web-services.php:414
|
79 |
msgid "Integration"
|
80 |
msgstr ""
|
81 |
|
82 |
+
#: classes/amazon-web-services.php:384
|
83 |
msgid "Easy Digital Downloads"
|
84 |
msgstr ""
|
85 |
|
86 |
+
#: classes/amazon-web-services.php:391
|
87 |
msgid "WPML"
|
88 |
msgstr ""
|
89 |
|
90 |
+
#: classes/amazon-web-services.php:398
|
91 |
msgid "Meta Slider"
|
92 |
msgstr ""
|
93 |
|
94 |
+
#: classes/amazon-web-services.php:405
|
95 |
msgid "Enable Media Replace"
|
96 |
msgstr ""
|
97 |
|
98 |
+
#: classes/amazon-web-services.php:412
|
99 |
msgid "ACF Image Crop"
|
100 |
msgstr ""
|
101 |
|
102 |
+
#: classes/amazon-web-services.php:461
|
103 |
msgctxt "Plugin already installed and activated"
|
104 |
msgid "Installed & Activated"
|
105 |
msgstr ""
|
106 |
|
107 |
+
#: classes/amazon-web-services.php:463
|
108 |
msgctxt "Plugin already installed"
|
109 |
msgid "Installed"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: classes/amazon-web-services.php:464
|
113 |
msgctxt "Activate plugin now"
|
114 |
msgid "Activate Now"
|
115 |
msgstr ""
|
116 |
|
117 |
+
#: classes/amazon-web-services.php:467
|
118 |
msgctxt "Install plugin now"
|
119 |
msgid "Install Now"
|
120 |
msgstr ""
|
121 |
|
122 |
+
#: classes/amazon-web-services.php:503
|
123 |
msgid "Visit Site"
|
124 |
msgstr ""
|
125 |
|
126 |
+
#: classes/amazon-web-services.php:506
|
127 |
msgctxt "View plugin details"
|
128 |
msgid "View Details"
|
129 |
msgstr ""
|
130 |
|
131 |
+
#: classes/aws-compatibility-check.php:25
|
132 |
msgid "a PHP version less than 5.3.3"
|
133 |
msgstr ""
|
134 |
|
135 |
+
#: classes/aws-compatibility-check.php:29
|
136 |
msgid "no PHP cURL library activated"
|
137 |
msgstr ""
|
138 |
|
139 |
+
#: classes/aws-compatibility-check.php:35
|
140 |
msgid "a cURL version less than 7.16.2"
|
141 |
msgstr ""
|
142 |
|
143 |
+
#: classes/aws-compatibility-check.php:50
|
144 |
msgid "cURL compiled without"
|
145 |
msgstr ""
|
146 |
|
147 |
+
#: classes/aws-compatibility-check.php:55
|
148 |
msgid "the function curl_multi_exec disabled"
|
149 |
msgstr ""
|
150 |
|
151 |
+
#: classes/aws-compatibility-check.php:73
|
152 |
msgid ""
|
153 |
"The official Amazon Web Services SDK requires PHP 5.3.3+ and cURL "
|
154 |
"7.16.2+ compiled with OpenSSL and zlib. Your server currently has"
|
155 |
msgstr ""
|
156 |
|
157 |
+
#: classes/aws-plugin-base.php:279
|
158 |
msgid "Settings"
|
159 |
msgstr ""
|
160 |
|
161 |
+
#: classes/wp-aws-compatibility-check.php:323
|
162 |
msgid "deactivate"
|
163 |
msgstr ""
|
164 |
|
165 |
+
#: classes/wp-aws-compatibility-check.php:324
|
166 |
#, php-format
|
167 |
msgid "You can %s the %s plugin to get rid of this notice."
|
168 |
msgstr ""
|
169 |
|
170 |
+
#: classes/wp-aws-compatibility-check.php:327
|
171 |
#, php-format
|
172 |
msgid "%s has been disabled as it requires the %s plugin."
|
173 |
msgstr ""
|
174 |
|
175 |
+
#: classes/wp-aws-compatibility-check.php:331
|
176 |
msgid "which is currently disabled."
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: classes/wp-aws-compatibility-check.php:333
|
180 |
msgid "It appears to be installed already."
|
181 |
msgstr ""
|
182 |
|
183 |
+
#: classes/wp-aws-compatibility-check.php:335
|
184 |
msgctxt "Activate plugin"
|
185 |
msgid "Activate it now."
|
186 |
msgstr ""
|
187 |
|
188 |
+
#: classes/wp-aws-compatibility-check.php:342
|
189 |
#, php-format
|
190 |
msgid "<a href=\"%s\">Install</a> and activate it."
|
191 |
msgstr ""
|
192 |
|
193 |
+
#: classes/wp-aws-compatibility-check.php:353
|
194 |
#, php-format
|
195 |
msgid ""
|
196 |
"%s has been disabled as it requires version %s or later of the %s plugin."
|
197 |
msgstr ""
|
198 |
|
199 |
+
#: classes/wp-aws-compatibility-check.php:356
|
200 |
#, php-format
|
201 |
msgid "You currently have version %s installed."
|
202 |
msgstr ""
|
203 |
|
204 |
+
#: classes/wp-aws-compatibility-check.php:363
|
205 |
+
#: classes/wp-aws-compatibility-check.php:401
|
206 |
#, php-format
|
207 |
msgid "A valid license for %s is required to update."
|
208 |
msgstr ""
|
209 |
|
210 |
+
#: classes/wp-aws-compatibility-check.php:371
|
211 |
msgid "Update to the latest version"
|
212 |
msgstr ""
|
213 |
|
214 |
+
#: classes/wp-aws-compatibility-check.php:383
|
215 |
#, php-format
|
216 |
msgid ""
|
217 |
"%1$s has been disabled because it is not a supported addon of the %2$s "
|
218 |
"plugin."
|
219 |
msgstr ""
|
220 |
|
221 |
+
#: classes/wp-aws-compatibility-check.php:392
|
222 |
#, php-format
|
223 |
msgid ""
|
224 |
"%1$s has been disabled because it will not work with the version of the %2$s "
|
225 |
"plugin installed. %1$s %3$s or later is required."
|
226 |
msgstr ""
|
227 |
|
228 |
+
#: classes/wp-aws-compatibility-check.php:395
|
229 |
#, php-format
|
230 |
msgid "Update %s to the latest version"
|
231 |
msgstr ""
|
232 |
|
233 |
+
#: classes/wp-aws-compatibility-check.php:464
|
234 |
#, php-format
|
235 |
msgid "The %s plugin has been deactivated."
|
236 |
msgstr ""
|
237 |
|
238 |
+
#: view/activation-error.php:5
|
239 |
msgid "Activation Error"
|
240 |
msgstr ""
|
241 |
|
242 |
+
#: view/settings.php:9
|
243 |
#, php-format
|
244 |
msgid ""
|
245 |
"Need help getting your Access Keys? <a href=\"%s\">Check out the Quick Start "
|
246 |
"Guide →</a>"
|
247 |
msgstr ""
|
248 |
|
249 |
+
#: view/settings.php:19
|
250 |
msgid "You have enabled the use of IAM roles for Amazon EC2 instances."
|
251 |
msgstr ""
|
252 |
|
253 |
+
#: view/settings.php:25
|
254 |
msgid ""
|
255 |
"You’ve already defined your AWS access keys in your wp-config.php. If "
|
256 |
"you’d prefer to manage them here and store them in the database (not "
|
257 |
"recommended), simply remove the lines from your wp-config."
|
258 |
msgstr ""
|
259 |
|
260 |
+
#: view/settings.php:31
|
261 |
msgid ""
|
262 |
"We recommend defining your Access Keys in wp-config.php so long as you "
|
263 |
"don’t commit it to source control (you shouldn’t be). Simply "
|
264 |
"copy the following snippet and replace the stars with the keys."
|
265 |
msgstr ""
|
266 |
|
267 |
+
#: view/settings.php:38
|
268 |
msgid ""
|
269 |
"If you’d rather store your Access Keys in the database, <a href="
|
270 |
"\"\">click here to reveal a form.</a>"
|
271 |
msgstr ""
|
272 |
|
273 |
+
#: view/settings.php:54
|
274 |
msgid "Access Key ID:"
|
275 |
msgstr ""
|
276 |
|
277 |
+
#: view/settings.php:60
|
278 |
msgid "Secret Access Key:"
|
279 |
msgstr ""
|
280 |
|
281 |
+
#: view/settings.php:67
|
282 |
msgid "Save Changes"
|
283 |
msgstr ""
|
284 |
|
285 |
+
#: view/settings.php:70
|
286 |
msgid "Remove Keys"
|
287 |
msgstr ""
|
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.6
|
6 |
-
Stable tag: 0.3.
|
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 |
= 0.3.6 - 2016-05-30 =
|
37 |
* Improvement: Now checks that the `curl_multi_exec` function is available.
|
38 |
|
3 |
Tags: amazon, amazon web services
|
4 |
Requires at least: 4.4
|
5 |
Tested up to: 4.6
|
6 |
+
Stable tag: 0.3.7
|
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 |
+
= 0.3.7 - 2016-09-01 =
|
37 |
+
* Improvement: No longer delete plugin data on uninstall. Manual removal possible, as per this [doc](https://deliciousbrains.com/wp-offload-s3/doc/uninstall/).
|
38 |
+
|
39 |
= 0.3.6 - 2016-05-30 =
|
40 |
* Improvement: Now checks that the `curl_multi_exec` function is available.
|
41 |
|
uninstall.php
DELETED
@@ -1,19 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* Uninstall Amazon Web Services
|
4 |
-
*
|
5 |
-
* @package amazon-web-services
|
6 |
-
* @subpackage uninstall
|
7 |
-
* @copyright Copyright (c) 2015, Delicious Brains
|
8 |
-
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
|
9 |
-
* @since 0.2.3
|
10 |
-
*/
|
11 |
-
|
12 |
-
// Exit if accessed directly
|
13 |
-
if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
|
14 |
-
exit;
|
15 |
-
}
|
16 |
-
|
17 |
-
require dirname( __FILE__ ) . '/classes/wp-aws-uninstall.php';
|
18 |
-
|
19 |
-
$as3cf_uninstall = new WP_AWS_Uninstall( 'aws_settings', array(), array(), array() );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|