-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
24 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,19 +5,19 @@ | |
* Description: Customize WooCommerce without code! Easily change add to cart button text and more. | ||
* Author: SkyVerge | ||
* Author URI: http://www.skyverge.com | ||
* Version: 1.2.1 | ||
* Version: 2.0.0 | ||
* Text Domain: wc-customizer | ||
* Domain Path: /languages/ | ||
* | ||
* Copyright: (c) 2013 SkyVerge, Inc. ([email protected]) | ||
* Copyright: (c) 2013-2014 SkyVerge, Inc. ([email protected]) | ||
* | ||
* License: GNU General Public License v3.0 | ||
* License URI: http://www.gnu.org/licenses/gpl-3.0.html | ||
* | ||
* @package WC-Customizer | ||
* @author SkyVerge | ||
* @category Utility | ||
* @copyright Copyright (c) 2013, SkyVerge, Inc. | ||
* @copyright Copyright (c) 2013-2014, SkyVerge, Inc. | ||
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License v3.0 | ||
*/ | ||
|
||
|
@@ -84,7 +84,10 @@ class WC_Customizer { | |
|
||
|
||
/** plugin version number */ | ||
const VERSION = '1.2.1'; | ||
const VERSION = '1.2.0.1'; | ||
|
||
/** @var \WC_Customizer_Settings instance */ | ||
public $settings; | ||
|
||
/** var array the active filters */ | ||
public $filters; | ||
|
@@ -93,7 +96,7 @@ class WC_Customizer { | |
/** | ||
* Initializes the plugin | ||
* | ||
* @since 1.0 | ||
* @since 1.0.0 | ||
*/ | ||
public function __construct() { | ||
|
||
|
@@ -120,7 +123,7 @@ public function __construct() { | |
/** | ||
* Add settings page | ||
* | ||
* @since 1.2.1-1 | ||
* @since 2.0.0 | ||
* @param array $settings | ||
* @return array | ||
*/ | ||
|
@@ -134,7 +137,7 @@ public function add_settings_page( $settings ) { | |
/** | ||
* Load customizations after WC is loaded so the version can be checked | ||
* | ||
* @since 1.2 | ||
* @since 1.2.0 | ||
*/ | ||
public function load_customizations() { | ||
|
||
|
@@ -170,7 +173,7 @@ public function load_customizations() { | |
/** | ||
* Handle localization, WPML compatible | ||
* | ||
* @since 1.1 | ||
* @since 1.1.0 | ||
*/ | ||
public function load_translation() { | ||
|
||
|
@@ -185,7 +188,7 @@ public function load_translation() { | |
/** | ||
* Add hook to selected filters | ||
* | ||
* @since 1.0 | ||
* @since 1.0.0 | ||
* @return string $filter_value value to use for selected hook | ||
*/ | ||
public function customize() { | ||
|
@@ -212,7 +215,7 @@ public function customize() { | |
/** | ||
* Apply the single add to cart button text customization | ||
* | ||
* @since 1.2 | ||
* @since 1.2.0 | ||
*/ | ||
public function customize_single_add_to_cart_text() { | ||
|
||
|
@@ -223,7 +226,7 @@ public function customize_single_add_to_cart_text() { | |
/** | ||
* Apply the shop loop add to cart button text customization | ||
* | ||
* @since 1.2 | ||
* @since 1.2.0 | ||
* @param string $text add to cart text | ||
* @param WC_Product $product product object | ||
* @return string modified add to cart text | ||
|
@@ -268,7 +271,7 @@ public function customize_add_to_cart_text( $text, $product ) { | |
* Return the plugin action links. This will only be called if the plugin | ||
* is active. | ||
* | ||
* @since 1.0 | ||
* @since 1.0.0 | ||
* @param array $actions associative array of action names to anchor tags | ||
* @return array associative array of plugin action links | ||
*/ | ||
|
@@ -291,7 +294,7 @@ public function add_plugin_action_links( $actions ) { | |
/** | ||
* Run every time. Used since the activation hook is not executed when updating a plugin | ||
* | ||
* @since 1.1 | ||
* @since 1.1.0 | ||
*/ | ||
private function install() { | ||
|
||
|
@@ -314,7 +317,7 @@ private function install() { | |
/** | ||
* Perform any version-related changes. | ||
* | ||
* @since 1.1 | ||
* @since 1.1.0 | ||
* @param int $installed_version the currently installed version of the plugin | ||
*/ | ||
private function upgrade( $installed_version ) { | ||
|