Update class-wc-meta-box-order-data.php

Set "Order" string to be retrieved from post type object singular name rather than being hard coded. Similar to side bar meta box titles.
This commit is contained in:
Peter 2015-04-29 16:01:34 -04:00
parent c1ba19991f
commit c8707a68c1
1 changed files with 2 additions and 1 deletions

View File

@ -147,6 +147,7 @@ class WC_Meta_Box_Order_Data {
$payment_method = ! empty( $order->payment_method ) ? $order->payment_method : '';
$order_type_object = get_post_type_object( $post->post_type );
wp_nonce_field( 'woocommerce_save_data', 'woocommerce_meta_nonce' );
?>
<style type="text/css">
@ -157,7 +158,7 @@ class WC_Meta_Box_Order_Data {
<input name="post_status" type="hidden" value="<?php echo esc_attr( $order->get_status() ); ?>" />
<div id="order_data" class="panel">
<h2><?php printf( __( 'Order %s details', 'woocommerce' ), esc_html( $order->get_order_number() ) ); ?></h2>
<h2><?php printf( __( '%s #%s Details', 'woocommerce' ), $order_type_object->labels->singular_name, esc_html( $order->get_order_number() ) ); ?></h2>
<p class="order_number"><?php
if ( $payment_method ) {