Skip to content

Commit b157fb2

Browse files
committed
Version 5.2.0
1 parent 75079f5 commit b157fb2

12 files changed

+162
-166
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "wc-plugin-framework",
3-
"version": "5.2.0-dev",
3+
"version": "5.2.0",
44
"title": "WooCommerce Plugin Framework",
55
"author": "SkyVerge Team",
66
"homepage": "https://github.com/skyverge/wc-plugin-framework#readme",

tests/unit/helper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,7 +763,7 @@ public function test_array_to_xml() {
763763
*
764764
* @see \SV_WC_Helper::list_array_items()
765765
*
766-
* @since 5.2.0-dev
766+
* @since 5.2.0
767767
*
768768
* @dataProvider provider_test_list_array_items
769769
*/
@@ -776,7 +776,7 @@ public function test_list_array_items( $items, $conjunction, $separator, $expect
776776
/**
777777
* Data provider for test_list_array_items()
778778
*
779-
* @since 5.2.0-dev
779+
* @since 5.2.0
780780
*
781781
* @return array
782782
*/

woocommerce/Lifecycle.php

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ protected function add_hooks() {
9191
/**
9292
* Initializes the plugin lifecycle.
9393
*
94-
* @since 5.2.0-dev
94+
* @since 5.2.0
9595
*/
9696
public function init() {
9797

@@ -151,7 +151,7 @@ public function init() {
151151
*
152152
* @link https://developer.wordpress.org/reference/functions/register_activation_hook/#comment-2100
153153
*
154-
* @since 5.2.0-dev
154+
* @since 5.2.0
155155
*/
156156
public function handle_activation() {
157157

@@ -162,7 +162,7 @@ public function handle_activation() {
162162
/**
163163
* Fires when the plugin is activated.
164164
*
165-
* @since 5.2.0-dev
165+
* @since 5.2.0
166166
*/
167167
do_action( 'wc_' . $this->get_plugin()->get_id() . '_activated' );
168168

@@ -176,7 +176,7 @@ public function handle_activation() {
176176
*
177177
* @internal
178178
*
179-
* @since 5.2.0-dev
179+
* @since 5.2.0
180180
*/
181181
public function handle_deactivation() {
182182

@@ -185,7 +185,7 @@ public function handle_deactivation() {
185185
/**
186186
* Fires when the plugin is deactivated.
187187
*
188-
* @since 5.2.0-dev
188+
* @since 5.2.0
189189
*/
190190
do_action( 'wc_' . $this->get_plugin()->get_id() . '_deactivated' );
191191

@@ -202,7 +202,7 @@ public function handle_deactivation() {
202202
* data. Since we rely on an option to track activation, it's possible for
203203
* this to run outside of genuine activations.
204204
*
205-
* @since 5.2.0-dev
205+
* @since 5.2.0
206206
*/
207207
public function activate() {
208208

@@ -215,7 +215,7 @@ public function activate() {
215215
*
216216
* Plugins can override this to run their own deactivation tasks.
217217
*
218-
* @since 5.2.0-dev
218+
* @since 5.2.0
219219
*/
220220
public function deactivate() {
221221

@@ -226,7 +226,7 @@ public function deactivate() {
226226
/**
227227
* Helper method to install default settings for a plugin.
228228
*
229-
* @since 5.2.0-dev
229+
* @since 5.2.0
230230
*
231231
* @param array $settings settings in format required by WC_Admin_Settings
232232
*/
@@ -245,7 +245,7 @@ public function install_default_settings( array $settings ) {
245245
/**
246246
* Performs any install tasks.
247247
*
248-
* @since 5.2.0-dev
248+
* @since 5.2.0
249249
*/
250250
protected function install() {
251251

@@ -256,7 +256,7 @@ protected function install() {
256256
/**
257257
* Performs any upgrade tasks based on the provided installed version.
258258
*
259-
* @since 5.2.0-dev
259+
* @since 5.2.0
260260
*
261261
* @param string $installed_version installed version
262262
*/
@@ -454,7 +454,7 @@ public function get_milestone_version() {
454454
/**
455455
* Gets the currently installed plugin version.
456456
*
457-
* @since 5.2.0-dev
457+
* @since 5.2.0
458458
*
459459
* @return string
460460
*/
@@ -467,7 +467,7 @@ protected function get_installed_version() {
467467
/**
468468
* Sets the installed plugin version.
469469
*
470-
* @since 5.2.0-dev
470+
* @since 5.2.0
471471
*
472472
* @param string $version version to set
473473
*/
@@ -502,7 +502,7 @@ protected function get_plugin() {
502502
*/
503503
public function do_update() {
504504

505-
SV_WC_Plugin_Compatibility::wc_deprecated_function( __METHOD__, '5.2.0-dev' );
505+
SV_WC_Plugin_Compatibility::wc_deprecated_function( __METHOD__, '5.2.0' );
506506
}
507507

508508

woocommerce/changelog.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
*** SkyVerge WooCommerce Plugin Framework Changelog ***
22

3-
2018.nn.nn - version 5.2.0-dev
3+
2018.07.24 - version 5.2.0
4+
* Fix - Use the order currency for the gateway capture message currency symbol
45
* Dev - Introduce dedicated plugin methods for loading after init
6+
* Dev - Move plugin lifecycle methods to the Lifecycle handler
7+
* Dev - Introduce a dependency handler for PHP compatibility notices
8+
* Dev - Introduce a REST API handler base
9+
* Misc - Add default plugin and gateway data to the WooCommerce REST API System Status response
510

611
2018.06.25 - version 5.1.5
712
* Fix - Ensure exceptions are caught for Subscriptions "change payment" and Pre-Orders tokenization failures

woocommerce/class-sv-wc-helper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ public static function array_to_xml( $xml_writer, $element_key, $element_value =
394394
* Takes an array and returns a list like "one, two, three, and four"
395395
* with a (mandatory) oxford comma.
396396
*
397-
* @since 5.2.0-dev
397+
* @since 5.2.0
398398
*
399399
* @param array $items items to list
400400
* @param string|null $conjunction coordinating conjunction, like "or" or "and"
@@ -1032,7 +1032,7 @@ public static function convert_country_code( $code ) {
10321032
/**
10331033
* Displays a notice if the provided hook has not yet run.
10341034
*
1035-
* @since 5.2.0-dev
1035+
* @since 5.2.0
10361036
*
10371037
* @param string $hook action hook to check
10381038
* @param string $method method/function name

woocommerce/class-sv-wc-plugin-dependencies.php

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ public function __construct( SV_WC_Plugin $plugin, $args = array() ) {
7474
/**
7575
* Parses the dependency arguments and sets defaults.
7676
*
77-
* @since 5.2.0-dev
77+
* @since 5.2.0
7878
*
7979
* @param array $args dependency args
8080
* @return array
@@ -108,7 +108,7 @@ private function parse_dependencies( $args ) {
108108
/**
109109
* Adds the action & filter hooks.
110110
*
111-
* @since 5.2.0-dev
111+
* @since 5.2.0
112112
*/
113113
protected function add_hooks() {
114114

@@ -120,7 +120,7 @@ protected function add_hooks() {
120120
/**
121121
* Adds the admin dependency notices.
122122
*
123-
* @since 5.2.0-dev
123+
* @since 5.2.0
124124
*/
125125
public function add_admin_notices() {
126126

@@ -135,7 +135,7 @@ public function add_admin_notices() {
135135
/**
136136
* Adds notices for any missing PHP extensions.
137137
*
138-
* @since 5.2.0-dev
138+
* @since 5.2.0
139139
*/
140140
public function add_php_extension_notices() {
141141

@@ -163,7 +163,7 @@ public function add_php_extension_notices() {
163163
/**
164164
* Adds notices for any missing PHP functions.
165165
*
166-
* @since 5.2.0-dev
166+
* @since 5.2.0
167167
*/
168168
public function add_php_function_notices() {
169169

@@ -191,7 +191,7 @@ public function add_php_function_notices() {
191191
/**
192192
* Adds notices for any incompatible PHP settings.
193193
*
194-
* @since 5.2.0-dev
194+
* @since 5.2.0
195195
*/
196196
public function add_php_settings_notices() {
197197

@@ -238,7 +238,7 @@ public function add_php_settings_notices() {
238238
/**
239239
* Gets any deprecated warning notices.
240240
*
241-
* @since 5.2.0-dev
241+
* @since 5.2.0
242242
*/
243243
protected function add_deprecated_notices() {
244244

@@ -283,7 +283,7 @@ protected function add_deprecated_notices() {
283283
/**
284284
* Adds an admin notice.
285285
*
286-
* @since 5.2.0-dev
286+
* @since 5.2.0
287287
*
288288
* @param string $id notice ID
289289
* @param string $message notice message
@@ -325,7 +325,7 @@ protected function add_admin_notice( $id, $message, $type = 'info' ) {
325325
/**
326326
* Gets any missing PHP extensions.
327327
*
328-
* @since 5.2.0-dev
328+
* @since 5.2.0
329329
*
330330
* @return array
331331
*/
@@ -347,7 +347,7 @@ public function get_missing_php_extensions() {
347347
/**
348348
* Gets the required PHP extensions.
349349
*
350-
* @since 5.2.0-dev
350+
* @since 5.2.0
351351
*
352352
* @return array
353353
*/
@@ -360,7 +360,7 @@ public function get_php_extensions() {
360360
/**
361361
* Gets any missing PHP functions.
362362
*
363-
* @since 5.2.0-dev
363+
* @since 5.2.0
364364
*
365365
* @return array
366366
*/
@@ -382,7 +382,7 @@ public function get_missing_php_functions() {
382382
/**
383383
* Gets the required PHP functions.
384384
*
385-
* @since 5.2.0-dev
385+
* @since 5.2.0
386386
*
387387
* @return array
388388
*/
@@ -395,7 +395,7 @@ public function get_php_functions() {
395395
/**
396396
* Gets any incompatible PHP settings.
397397
*
398-
* @since 5.2.0-dev
398+
* @since 5.2.0
399399
*
400400
* @return array
401401
*/
@@ -448,7 +448,7 @@ public function get_incompatible_php_settings() {
448448
/**
449449
* Gets the required PHP settings.
450450
*
451-
* @since 5.2.0-dev
451+
* @since 5.2.0
452452
*
453453
* @return array
454454
*/
@@ -461,7 +461,7 @@ public function get_php_settings() {
461461
/**
462462
* Gets the plugin instance.
463463
*
464-
* @since 5.2.0-dev
464+
* @since 5.2.0
465465
*
466466
* @return SV_WC_Plugin
467467
*/

0 commit comments

Comments
 (0)