Absolute path, Indentation & docblocks fix for includes/admin/meta-boxes/*.php :)

This commit is contained in:
shivapoudel 2014-09-21 01:50:06 +05:45
parent a318f9dae2
commit ae3bc4051f
17 changed files with 57 additions and 19 deletions

View File

@ -10,10 +10,12 @@
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/**
* WC_Meta_Box_Coupon_Data
* WC_Meta_Box_Coupon_Data Class
*/
class WC_Meta_Box_Coupon_Data {

View File

@ -10,8 +10,13 @@
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/**
* WC_Meta_Box_Order_Actions Class
*/
class WC_Meta_Box_Order_Actions {
/**

View File

@ -15,7 +15,7 @@ if ( ! defined( 'ABSPATH' ) ) {
}
/**
* WC_Meta_Box_Order_Data
* WC_Meta_Box_Order_Data Class
*/
class WC_Meta_Box_Order_Data {

View File

@ -8,10 +8,12 @@
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/**
* WC_Meta_Box_Order_Downloads
* WC_Meta_Box_Order_Downloads Class
*/
class WC_Meta_Box_Order_Downloads {

View File

@ -10,8 +10,13 @@
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/**
* WC_Meta_Box_Order_Items Class
*/
class WC_Meta_Box_Order_Items {
/**

View File

@ -8,10 +8,12 @@
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/**
* WC_Meta_Box_Order_Notes
* WC_Meta_Box_Order_Notes Class
*/
class WC_Meta_Box_Order_Notes {

View File

@ -10,10 +10,12 @@
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/**
* WC_Meta_Box_Order_Reviews
* WC_Meta_Box_Order_Reviews Class
*/
class WC_Meta_Box_Order_Reviews {

View File

@ -15,7 +15,7 @@ if ( ! defined( 'ABSPATH' ) ) {
}
/**
* WC_Meta_Box_Product_Data
* WC_Meta_Box_Product_Data Class
*/
class WC_Meta_Box_Product_Data {

View File

@ -10,10 +10,12 @@
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/**
* WC_Meta_Box_Product_Images
* WC_Meta_Box_Product_Images Class
*/
class WC_Meta_Box_Product_Images {

View File

@ -10,10 +10,12 @@
* @version 2.1.0
*/
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
/**
* WC_Meta_Box_Product_Short_Description
* WC_Meta_Box_Product_Short_Description Class
*/
class WC_Meta_Box_Product_Short_Description {

View File

@ -1,5 +1,9 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
?>
<div class="wc-metabox closed">
<h3 class="fixed">
@ -25,4 +29,4 @@ if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
</tr>
</tbody>
</table>
</div>
</div>

View File

@ -1,7 +1,9 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
?>
<tr class="fee <?php echo ( ! empty( $class ) ) ? $class : ''; ?>" data-order_item_id="<?php echo $item_id; ?>">
<td class="check-column"><input type="checkbox" /></td>

View File

@ -1,7 +1,9 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
?>
<tr class="item <?php echo apply_filters( 'woocommerce_admin_html_order_item_class', ( ! empty( $class ) ? $class : '' ), $item ); ?>" data-order_item_id="<?php echo $item_id; ?>">
<td class="check-column"><input type="checkbox" /></td>

View File

@ -1,4 +1,5 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}

View File

@ -1,7 +1,9 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
$who_refunded = new WP_User( $refund->post->post_author );
?>
<tr class="refund <?php echo ( ! empty( $class ) ) ? $class : ''; ?>" data-order_refund_id="<?php echo $refund->id; ?>">

View File

@ -1,4 +1,5 @@
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}

View File

@ -1,5 +1,9 @@
<?php
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly
}
?>
<div class="woocommerce_variation wc-metabox closed">
<h3>