More minor fixes and typos

This commit is contained in:
Claudio Sanches 2016-04-04 14:17:41 -05:00
parent 548c222560
commit d7e408d027
4 changed files with 6 additions and 6 deletions

View File

@ -44,7 +44,7 @@ class WC_REST_Report_Sales_Controller extends WP_REST_Controller {
protected $report;
/**
* Register the routes for coupons.
* Register the routes for sales reports.
*/
public function register_routes() {
register_rest_route( $this->namespace, '/' . $this->rest_base, array(
@ -123,7 +123,7 @@ class WC_REST_Report_Sales_Controller extends WP_REST_Controller {
$period_totals = array();
// Setup period totals by ensuring each period in the interval has data.
for ( $i = 0; $i <= $this->report->chart_interval; $i ++ ) {
for ( $i = 0; $i <= $this->report->chart_interval; $i++ ) {
switch ( $this->report->chart_groupby ) {
case 'day' :
@ -255,7 +255,7 @@ class WC_REST_Report_Sales_Controller extends WP_REST_Controller {
if ( ! empty( $filter['date_min'] ) || ! empty( $filter['date_max'] ) ) {
// Iverwrite _GET to make use of WC_Admin_Report::calculate_current_range() for custom date ranges.
// Overwrite _GET to make use of WC_Admin_Report::calculate_current_range() for custom date ranges.
$_GET['start_date'] = $filter['date_min'];
$_GET['end_date'] = isset( $filter['date_max'] ) ? $filter['date_max'] : null;

View File

@ -161,7 +161,7 @@ class WC_REST_Report_Top_Sellers_Controller extends WC_REST_Report_Sales_Control
'readonly' => true,
),
'quantity' => array(
'description' => __( 'Total of purchases.', 'woocommerce' ),
'description' => __( 'Total number of purchases.', 'woocommerce' ),
'type' => 'integer',
'context' => array( 'view' ),
'readonly' => true,

View File

@ -37,7 +37,7 @@ class WC_REST_Reports_Controller extends WP_REST_Controller {
protected $rest_base = 'reports';
/**
* Register the routes for coupons.
* Register the routes for reports.
*/
public function register_routes() {
register_rest_route( $this->namespace, '/' . $this->rest_base, array(

View File

@ -576,7 +576,7 @@ class WC_REST_Taxes_Controller extends WP_REST_Controller {
'context' => array( 'view', 'edit' ),
),
'priority' => array(
'description' => __( 'Customer password.', 'woocommerce' ),
'description' => __( 'Tax priority.', 'woocommerce' ),
'type' => 'integer',
'default' => 1,
'context' => array( 'view', 'edit' ),