WooCommerce 2.0 is coming!

This commit is contained in:
Coen Jacobs 2012-12-03 20:19:58 +01:00
parent 39d47ddfa5
commit 37feabd87f
63 changed files with 70 additions and 70 deletions

View File

@ -5,7 +5,7 @@
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/Importers
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -5,7 +5,7 @@
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/Importers
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -5,7 +5,7 @@
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/Updates
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -5,7 +5,7 @@
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/Updates
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -1,11 +1,11 @@
<?php
/**
* Update WC to 1.7
* Update WC to 2.0
*
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/Updates
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -7,7 +7,7 @@
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/WritePanels
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -7,7 +7,7 @@
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/WritePanels
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -7,7 +7,7 @@
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/WritePanels
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -7,7 +7,7 @@
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/WritePanels
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -7,7 +7,7 @@
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/WritePanels
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -7,7 +7,7 @@
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/WritePanels
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -5,7 +5,7 @@
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/Settings
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -7,7 +7,7 @@
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/Install
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@ -84,7 +84,7 @@ function do_install_woocommerce() {
$current_version = get_option( 'woocommerce_version', null );
$current_db_version = get_option( 'woocommerce_db_version', null );
if ( version_compare( $current_db_version, '1.7', '<' ) && null !== $current_version ) {
if ( version_compare( $current_db_version, '2.0', '<' ) && null !== $current_version ) {
update_option( 'woocommerce_needs_update', 1 );
} else {
update_option( 'woocommerce_db_version', $woocommerce->version );

View File

@ -7,7 +7,7 @@
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/Reports
* @version 1.7
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -7,7 +7,7 @@
* @author WooThemes
* @category Admin
* @package WooCommerce/Admin/Updates
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
@ -34,9 +34,9 @@ function do_update_woocommerce() {
update_option( 'woocommerce_db_version', '1.5' );
}
if ( version_compare( $current_db_version, '1.7', '<' ) ) {
include( 'includes/updates/woocommerce-update-1.7.php' );
update_option( 'woocommerce_db_version', '1.7' );
if ( version_compare( $current_db_version, '2.0', '<' ) ) {
include( 'includes/updates/woocommerce-update-2.0.php' );
update_option( 'woocommerce_db_version', '2.0' );
}
update_option( 'woocommerce_db_version', $woocommerce->version );

View File

@ -5,7 +5,7 @@
* The WooCommerce product class handles individual product data.
*
* @class WC_Product
* @version 1.7.0
* @version 2.0.0
* @package WooCommerce/Classes
* @author WooThemes
*/

View File

@ -3,7 +3,7 @@
* Handle data for the current customers session.
*
* @class WC_Session
* @version 1.7
* @version 2.0.0
* @package WooCommerce/Classes/Abstracts
* @author WooThemes
*/

View File

@ -5,7 +5,7 @@
* External products cannot be bought; they link offsite. Extends simple products.
*
* @class WC_Product_External
* @version 1.7.0
* @version 2.0.0
* @package WooCommerce/Classes/Products
* @author WooThemes
*/

View File

@ -6,7 +6,7 @@
* The WooCommerce product factory creating the right product object
*
* @class WC_Product_Factory
* @version 1.7.0
* @version 2.0.0
* @package WooCommerce/Classes
* @author WooThemes
*/

View File

@ -5,7 +5,7 @@
* Grouped products cannot be purchased - they are wrappers for other products.
*
* @class WC_Product_Grouped
* @version 1.7.0
* @version 2.0.0
* @package WooCommerce/Classes/Products
* @author WooThemes
*/

View File

@ -5,7 +5,7 @@
* The default product type kinda product.
*
* @class WC_Product_Simple
* @version 1.7.0
* @version 2.0.0
* @package WooCommerce/Classes/Products
* @author WooThemes
*/

View File

@ -5,7 +5,7 @@
* The WooCommerce product class handles individual product data.
*
* @class WC_Product_Variable
* @version 1.7.0
* @version 2.0.0
* @package WooCommerce/Classes/Products
* @author WooThemes
*/

View File

@ -5,7 +5,7 @@
* The WooCommerce product variation class handles product variation data.
*
* @class WC_Product_Variation
* @version 1.7.0
* @version 2.0.0
* @package WooCommerce/Classes
* @author WooThemes
*/

View File

@ -4,7 +4,7 @@
* Implements the WC_Session abstract class
*
* @class WC_Session_Transients
* @version 1.7
* @version 2.0.0
* @package WooCommerce/Classes
* @author WooThemes
*/

View File

@ -3,7 +3,7 @@
* Performs tax calculations and loads tax rates.
*
* @class WC_Tax
* @version 1.7.0
* @version 2.0.0
* @package WooCommerce/Classes
* @author WooThemes
*/

View File

@ -5,7 +5,7 @@
* Order complete emails are sent to the customer when the order is marked complete and usual indicates that the order has been shipped.
*
* @class WC_Email_Customer_Completed_Order
* @version 1.7.0
* @version 2.0.0
* @package WooCommerce/Classes/Emails
* @author WooThemes
* @extends WC_Email

View File

@ -5,7 +5,7 @@
* An email sent to the customer via admin.
*
* @class WC_Email_Customer_Invoice
* @version 1.7.0
* @version 2.0.0
* @package WooCommerce/Classes/Emails
* @author WooThemes
* @extends WC_Email

View File

@ -5,7 +5,7 @@
* An email sent to the customer when they create an account.
*
* @class WC_Email_Customer_New_Account
* @version 1.7.0
* @version 2.0.0
* @package WooCommerce/Classes/Emails
* @author WooThemes
* @extends WC_Email

View File

@ -5,7 +5,7 @@
* Customer note emails are sent when you add a note to an order.
*
* @class WC_Email_Customer_Note
* @version 1.7.0
* @version 2.0.0
* @package WooCommerce/Classes/Emails
* @author WooThemes
* @extends WC_Email

View File

@ -5,7 +5,7 @@
* An email sent to the admin when a new order is received/paid for.
*
* @class WC_Email_Customer_Processing_Order
* @version 1.7.0
* @version 2.0.0
* @package WooCommerce/Classes/Emails
* @author WooThemes
* @extends WC_Email

View File

@ -5,7 +5,7 @@
* An email sent to the customer when they reset their password.
*
* @class WC_Email_Customer_Reset_Password
* @version 1.7.0
* @version 2.0.0
* @package WooCommerce/Classes/Emails
* @author WooThemes
* @extends WC_Email

View File

@ -5,7 +5,7 @@
* An email sent to the admin when a new order is received/paid for.
*
* @class WC_Email_New_Order
* @version 1.7.0
* @version 2.0.0
* @package WooCommerce/Classes/Emails
* @author WooThemes
* @extends WC_Email

View File

@ -5,7 +5,7 @@
* WooCommerce Email Class which is extended by specific email template classes to add emails to WooCommerce
*
* @class WC_Email
* @version 1.7.0
* @version 2.0.0
* @package WooCommerce/Classes/Emails
* @author WooThemes
* @extends WC_Settings_API

View File

@ -5,7 +5,7 @@
* WooCommerce Emails Class which handles the sending on transactional emails and email templates. This class loads in available emails.
*
* @class WC_Emails
* @version 1.7.0
* @version 2.0.0
* @package WooCommerce/Classes/Emails
* @author WooThemes
*/

View File

@ -150,7 +150,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
== Changelog ==
= 1.7.0 =
= 2.0.0 =
* Feature - Securi audited and secured.
* Feature - Added sales by category report.
* Feature - Added sales by coupon report (kudos Max Rice).
@ -1143,7 +1143,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc
== Upgrade Notice ==
= 1.7.0 =
= 2.0.0 =
There are many improvements in this major release - see the changelog for full details.
The biggest change is that we're redone order item storage making them easier (and faster) to access for reporting and querying purchases; there are huge performance gains for reports.

View File

@ -7,7 +7,7 @@
* @author WooThemes
* @category Shortcodes
* @package WooCommerce/Shortcodes
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -7,7 +7,7 @@
* @author WooThemes
* @category Shortcodes
* @package WooCommerce/Shortcodes/Lost Password
* @version 1.7.0
* @version 2.0.0
*/
/**

View File

@ -6,7 +6,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.7.0
* @version 2.0.0
*/
global $woocommerce;

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates/Emails/HTML
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates/Emails
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates/Emails
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates/Emails
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates/Emails
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates/Emails/Plain
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates/Emails/Plain
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates/Emails/Plain
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates/Emails/Plain
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates/Emails/Plain
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates/Emails/Plain
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates/Emails/Plain
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates/Emails/Plain
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates/Emails/Plain
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.7.0
* @version 2.0.0
*/
?>
</ul>

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.7.0
* @version 2.0.0
*/
?>
<ul class="products">

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -6,7 +6,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.7
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.7
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -4,7 +4,7 @@
*
* @author WooThemes
* @package WooCommerce/Templates
* @version 1.7.0
* @version 2.0.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

View File

@ -5,7 +5,7 @@
* @author WooThemes
* @category Widgets
* @package WooCommerce/Widgets
* @version 1.7.0
* @version 2.0.0
* @extends WP_Widget
*/

View File

@ -3,7 +3,7 @@
* Plugin Name: WooCommerce
* Plugin URI: http://www.woothemes.com/woocommerce/
* Description: An e-commerce toolkit that helps you sell anything. Beautifully.
* Version: 1.7.0 beta
* Version: 2.0.0 beta
* Author: WooThemes
* Author URI: http://woothemes.com
* Requires at least: 3.3
@ -37,7 +37,7 @@ class Woocommerce {
/**
* @var string
*/
var $version = '1.7.0';
var $version = '2.0.0';
/**
* @var string