Skip to content

Commit

Permalink
Changed version 2.7 to 3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiosanches committed Mar 15, 2017
1 parent 75a5b06 commit 59c2849
Show file tree
Hide file tree
Showing 226 changed files with 1,527 additions and 1,527 deletions.
4 changes: 2 additions & 2 deletions i18n/languages/woocommerce.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# This file is distributed under the same license as the WooCommerce package.
msgid ""
msgstr ""
"Project-Id-Version: WooCommerce 2.7.0-RC1\n"
"Project-Id-Version: WooCommerce 3.0.0-RC1\n"
"Report-Msgid-Bugs-To: https://github.com/woocommerce/woocommerce/issues\n"
"POT-Creation-Date: 2017-02-28 18:02:13+00:00\n"
"MIME-Version: 1.0\n"
Expand Down Expand Up @@ -22511,4 +22511,4 @@ msgstr ""
#: templates/product-searchform.php:27
msgctxt "submit button"
msgid "Search"
msgstr ""
msgstr ""
2 changes: 1 addition & 1 deletion i18n/states/IE.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @author WooThemes
* @category i18n
* @package WooCommerce/i18n
* @version 2.7.0
* @version 3.0.0
*/
global $states;

Expand Down
2 changes: 1 addition & 1 deletion i18n/states/NG.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @author hoshomoh
* @category i18n
* @package WooCommerce/i18n
* @version 2.7.0
* @version 3.0.0
*/

global $states;
Expand Down
2 changes: 1 addition & 1 deletion i18n/states/PK.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* @author WooCommerce
* @category i18n
* @package WooCommerce/i18n
* @version 2.7.0
* @version 3.0.0
*/
global $states;

Expand Down
56 changes: 28 additions & 28 deletions includes/abstracts/abstract-wc-data.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,39 +18,39 @@ abstract class WC_Data {
/**
* ID for this object.
*
* @since 2.7.0
* @since 3.0.0
* @var int
*/
protected $id = 0;

/**
* Core data for this object. Name value pairs (name + default value).
*
* @since 2.7.0
* @since 3.0.0
* @var array
*/
protected $data = array();

/**
* Core data changes for this object.
*
* @since 2.7.0
* @since 3.0.0
* @var array
*/
protected $changes = array();

/**
* This is false until the object is read from the DB.
*
* @since 2.7.0
* @since 3.0.0
* @var bool
*/
protected $object_read = false;

/**
* This is the name of this object type.
*
* @since 2.7.0
* @since 3.0.0
* @var string
*/
protected $object_type = 'data';
Expand All @@ -60,23 +60,23 @@ abstract class WC_Data {
* Used as a standard way for sub classes (like product types) to add
* additional information to an inherited class.
*
* @since 2.7.0
* @since 3.0.0
* @var array
*/
protected $extra_data = array();

/**
* Set to _data on construct so we can track and reset data if needed.
*
* @since 2.7.0
* @since 3.0.0
* @var array
*/
protected $default_data = array();

/**
* Contains a reference to the data store for this class.
*
* @since 2.7.0
* @since 3.0.0
* @var object
*/
protected $data_store;
Expand All @@ -85,15 +85,15 @@ abstract class WC_Data {
* Stores meta in cache for future reads.
* A group must be set to to enable caching.
*
* @since 2.7.0
* @since 3.0.0
* @var string
*/
protected $cache_group = '';

/**
* Stores additonal meta data.
*
* @since 2.7.0
* @since 3.0.0
* @var array
*/
protected $meta_data = null;
Expand All @@ -113,7 +113,7 @@ public function __construct( $read = 0 ) {
/**
* Get the data store.
*
* @since 2.7.0
* @since 3.0.0
* @return object
*/
public function get_data_store() {
Expand Down Expand Up @@ -189,7 +189,7 @@ public function get_data() {
/**
* Returns array of expected data keys for this object.
*
* @since 2.7.0
* @since 3.0.0
* @return array
*/
public function get_data_keys() {
Expand All @@ -199,7 +199,7 @@ public function get_data_keys() {
/**
* Returns all "extra" data keys for an object (for sub objects like product types).
*
* @since 2.7.0
* @since 3.0.0
* @return array
*/
public function get_extra_data_keys() {
Expand All @@ -209,7 +209,7 @@ public function get_extra_data_keys() {
/**
* Filter null meta values from array.
*
* @since 2.7.0
* @since 3.0.0
* @return bool
*/
protected function filter_null_meta( $meta ) {
Expand Down Expand Up @@ -259,7 +259,7 @@ public function get_meta( $key = '', $single = true, $context = 'view' ) {
/**
* See if meta data exists, since get_meta always returns a '' or array().
*
* @since 2.7.0
* @since 3.0.0
* @param string $key
* @return boolean
*/
Expand Down Expand Up @@ -364,7 +364,7 @@ public function delete_meta_data_by_mid( $mid ) {
/**
* Read meta data if null.
*
* @since 2.7.0
* @since 3.0.0
*/
protected function maybe_read_meta_data() {
if ( is_null( $this->meta_data ) ) {
Expand Down Expand Up @@ -455,7 +455,7 @@ public function save_meta_data() {
/**
* Set ID.
*
* @since 2.7.0
* @since 3.0.0
* @param int $id
*/
public function set_id( $id ) {
Expand All @@ -465,7 +465,7 @@ public function set_id( $id ) {
/**
* Set all props to default values.
*
* @since 2.7.0
* @since 3.0.0
*/
public function set_defaults() {
$this->data = $this->default_data;
Expand All @@ -476,7 +476,7 @@ public function set_defaults() {
/**
* Set object read property.
*
* @since 2.7.0
* @since 3.0.0
* @param boolean $read
*/
public function set_object_read( $read = true ) {
Expand All @@ -486,7 +486,7 @@ public function set_object_read( $read = true ) {
/**
* Get object read property.
*
* @since 2.7.0
* @since 3.0.0
* @return boolean
*/
public function get_object_read() {
Expand All @@ -497,7 +497,7 @@ public function get_object_read() {
* Set a collection of props in one go, collect any errors, and return the result.
* Only sets using public methods.
*
* @since 2.7.0
* @since 3.0.0
* @param array $props Key value pairs to set. Key is the prop and should map to a setter function name.
* @return WP_Error|bool
*/
Expand Down Expand Up @@ -531,7 +531,7 @@ public function set_props( $props, $context = 'set' ) {
* This stores changes in a special array so we can track what needs saving
* the the DB later.
*
* @since 2.7.0
* @since 3.0.0
* @param string $prop Name of prop to set.
* @param mixed $value Value of the prop.
*/
Expand All @@ -550,7 +550,7 @@ protected function set_prop( $prop, $value ) {
/**
* Return data changes only.
*
* @since 2.7.0
* @since 3.0.0
* @return array
*/
public function get_changes() {
Expand All @@ -560,7 +560,7 @@ public function get_changes() {
/**
* Merge changes with data and clear.
*
* @since 2.7.0
* @since 3.0.0
*/
public function apply_changes() {
$this->data = array_replace_recursive( $this->data, $this->changes );
Expand All @@ -570,7 +570,7 @@ public function apply_changes() {
/**
* Prefix for action and filter hooks on data.
*
* @since 2.7.0
* @since 3.0.0
* @return string
*/
protected function get_hook_prefix() {
Expand All @@ -583,7 +583,7 @@ protected function get_hook_prefix() {
* Gets the value from either current pending changes, or the data itself.
* Context controls what happens to the value before it's returned.
*
* @since 2.7.0
* @since 3.0.0
* @param string $prop Name of prop to get.
* @param string $context What the value is for. Valid values are view and edit.
* @return mixed
Expand All @@ -605,7 +605,7 @@ protected function get_prop( $prop, $context = 'view' ) {
/**
* Sets a date prop whilst handling formatting and datatime objects.
*
* @since 2.7.0
* @since 3.0.0
* @param string $prop Name of prop to set.
* @param string|integer $value Value of the prop.
*/
Expand All @@ -630,7 +630,7 @@ protected function set_date_prop( $prop, $value ) {
* When invalid data is found, throw an exception unless reading from the DB.
*
* @throws WC_Data_Exception
* @since 2.7.0
* @since 3.0.0
* @param string $code Error code.
* @param string $message Error message.
* @param int $http_status_code HTTP status code.
Expand Down
2 changes: 1 addition & 1 deletion includes/abstracts/abstract-wc-deprecated-hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
*
* Based on the WCS_Hook_Deprecator class by Prospress.
*
* @since 2.7.0
* @since 3.0.0
*/
abstract class WC_Deprecated_Hooks {

Expand Down
Loading

0 comments on commit 59c2849

Please sign in to comment.