Line and indendation fix

This commit is contained in:
shivapoudel 2014-09-21 00:39:33 +05:45
parent 73b1185375
commit 5f05a78669
3 changed files with 12 additions and 14 deletions

View File

@ -8,7 +8,6 @@
* @category Class
* @author WooThemes
*/
class WC_Order_Refund extends WC_Abstract_Order {
/**

View File

@ -8,7 +8,6 @@
* @category Class
* @author WooThemes
*/
class WC_Order extends WC_Abstract_Order {
/**
@ -72,7 +71,7 @@ class WC_Order extends WC_Abstract_Order {
/**
* Get the refunded amount for a line item
*
*
* @param int $item_id ID of the item we're checking
* @param string $item_type type of the item we're checking, if not a line_item
* @return integer
@ -91,7 +90,7 @@ class WC_Order extends WC_Abstract_Order {
/**
* Get the refunded amount for a line item
*
*
* @param int $item_id ID of the item we're checking
* @param string $item_type type of the item we're checking, if not a line_item
* @return integer
@ -117,7 +116,7 @@ class WC_Order extends WC_Abstract_Order {
/**
* Get the refunded amount for a line item
*
*
* @param int $item_id ID of the item we're checking
* @param int $tax_id ID of the tax we're checking
* @param string $item_type type of the item we're checking, if not a line_item
@ -146,5 +145,5 @@ class WC_Order extends WC_Abstract_Order {
}
}
return $total * -1;
}
}
}

View File

@ -67,8 +67,8 @@ class WC_Post_Data {
global $wpdb;
$wpdb->query( "
DELETE FROM `$wpdb->options`
WHERE `option_name` LIKE ('\_transient\_wc\_uf\_pid\_%')
DELETE FROM `$wpdb->options`
WHERE `option_name` LIKE ('\_transient\_wc\_uf\_pid\_%')
OR `option_name` LIKE ('\_transient\_timeout\_wc\_uf\_pid\_%')
OR `option_name` LIKE ('\_transient\_wc\_products\_will\_display\_%')
OR `option_name` LIKE ('\_transient\_timeout\_wc\_products\_will\_display\_%')
@ -112,7 +112,7 @@ class WC_Post_Data {
/**
* Ensure floats are correctly converted to strings based on PHP locale
*
*
* @param null $check
* @param int $object_id
* @param string $meta_key
@ -137,7 +137,7 @@ class WC_Post_Data {
/**
* Ensure floats are correctly converted to strings based on PHP locale
*
*
* @param null $check
* @param int $object_id
* @param string $meta_key
@ -174,7 +174,7 @@ class WC_Post_Data {
$order_title.= ' – ' . date_i18n( 'F j, Y @ h:i A', strtotime( $data['post_date'] ) );
}
$data['post_title'] = $order_title;
}
}
elseif ( 'product' === $data['post_type'] && isset( $_POST['product-type'] ) ) {
$product_type = stripslashes( $_POST['product-type'] );
@ -187,7 +187,7 @@ class WC_Post_Data {
}
return $data;
}
}
/**
* Some functions, like the term recount, require the visibility to be set prior. Lets save that here.
@ -203,7 +203,7 @@ class WC_Post_Data {
if ( isset( $_POST['_stock_status'] ) ) {
wc_update_product_stock_status( $post_id, wc_clean( $_POST['_stock_status'] ) );
}
}
}
}
WC_Post_Data::init();
WC_Post_Data::init();