Skip to content

Commit 328c252

Browse files
committed
[#119] 4.2.0 versioning
1 parent ea3ac9d commit 328c252

File tree

8 files changed

+154
-142
lines changed

8 files changed

+154
-142
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": "4.2.0-beta",
3+
"version": "4.2.0",
44
"title": "WooCommerce Plugin Framework",
55
"author": "SkyVerge Team",
66
"homepage": "https://github.com/skyverge/wc-plugin-framework#readme",

woocommerce/changelog.txt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
*** SkyVerge WooCommerce Plugin Framework Changelog ***
22

3-
2015.nn.nn - version 4.2.0-beta
3+
2016.01.13 - version 4.2.0
44
* Feature - Greatly improved compatibility with multi-language/translation plugins
55
* Misc - Switched to using a separate text domain for the framework strings - 'woocommerce-plugin-framework'
6-
* Misc - WooCommerce 2.5 Compatibility
6+
* Misc - Added support for WooCommerce 2.5
7+
* Misc - Removed support for WooCommerce 2.2
78

89
2015.11.05 - version 4.1.2
910
* Tweak - Misc Payment Gateway framework improvements

woocommerce/class-sv-wc-helper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ public static function f_x( $text, $context ) {
804804
* 1) given USA, returns US
805805
* 2) given US, returns USA
806806
*
807-
* @since 4.2.0-beta
807+
* @since 4.2.0
808808
* @param string $code ISO-3166-alpha-2 or ISO-3166-alpha-3 country code
809809
* @return string country code
810810
*/

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class SV_WC_Plugin_Compatibility {
5151
*
5252
* @link https://github.com/woothemes/woocommerce/pull/9765
5353
*
54-
* @since 4.2.0-beta
54+
* @since 4.2.0
5555
* @param \WC_Product $product product object
5656
* @return string|int product ID
5757
*/
@@ -73,7 +73,7 @@ public static function product_get_id( WC_Product $product ) {
7373
*
7474
* @link https://github.com/woothemes/woocommerce/pull/9417
7575
*
76-
* @since 4.2.0-beta
76+
* @since 4.2.0
7777
* @param string $tip help tip content, HTML allowed if $has_html is true
7878
* @param bool $has_html false by default, true to indicate tip content has HTML
7979
* @return string help tip HTML, a <span> in WC 2.5, <img> in WC 2.4/2.3
@@ -130,7 +130,7 @@ public static function is_wc_version_lt_2_4() {
130130
/**
131131
* Returns true if the installed version of WooCommerce is 2.5 or greater
132132
*
133-
* @since 4.2.0-beta
133+
* @since 4.2.0
134134
* @return boolean true if the installed version of WooCommerce is 2.5 or greater
135135
*/
136136
public static function is_wc_version_gte_2_5() {
@@ -141,7 +141,7 @@ public static function is_wc_version_gte_2_5() {
141141
/**
142142
* Returns true if the installed version of WooCommerce is less than 2.5
143143
*
144-
* @since 4.2.0-beta
144+
* @since 4.2.0
145145
* @return boolean true if the installed version of WooCommerce is less than 2.5
146146
*/
147147
public static function is_wc_version_lt_2_5() {

woocommerce/class-sv-wc-plugin.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,13 @@
3434
* plugin. This class handles all the "non-feature" support tasks such
3535
* as verifying dependencies are met, loading the text domain, etc.
3636
*
37-
* @version 4.2.0-beta
37+
* @version 4.2.0
3838
*/
3939
abstract class SV_WC_Plugin {
4040

4141

4242
/** Plugin Framework Version */
43-
const VERSION = '4.2.0-beta';
43+
const VERSION = '4.2.0';
4444

4545
/** @var object single instance of plugin */
4646
protected static $instance;
@@ -157,7 +157,7 @@ public function __wakeup() {
157157
/**
158158
* Load plugin & framework text domains
159159
*
160-
* @since 4.2.0-beta
160+
* @since 4.2.0
161161
*/
162162
public function load_translations() {
163163

@@ -470,7 +470,7 @@ public function log( $message, $log_id = null ) {
470470
/**
471471
* Require and instantiate a class
472472
*
473-
* @since 4.2.0-beta
473+
* @since 4.2.0
474474
* @param string $local_path path to class file in plugin, e.g. '/includes/class-wc-foo.php'
475475
* @param string $class_name class to instantiate
476476
* @return object instantiated class instance
@@ -860,7 +860,7 @@ public function do_install() {
860860
/**
861861
* Helper method to install default settings for a plugin
862862
*
863-
* @since 4.2.0-beta
863+
* @since 4.2.0
864864
* @param array $settings array of settings in format required by WC_Admin_Settings
865865
*/
866866
public function install_default_settings( array $settings ) {
@@ -900,7 +900,7 @@ protected function upgrade( $installed_version ) {
900900
* Plugin activated method. Perform any activation tasks here.
901901
* Note that this _does not_ run during upgrades.
902902
*
903-
* @since 4.2.0-beta
903+
* @since 4.2.0
904904
*/
905905
public function activate() {
906906
// stub
@@ -910,7 +910,7 @@ public function activate() {
910910
/**
911911
* Plugin deactivation method. Perform any deactivation tasks here.
912912
*
913-
* @since 4.2.0-beta
913+
* @since 4.2.0
914914
*/
915915
public function deactivate() {
916916
// stub

0 commit comments

Comments
 (0)