diff --git a/admin/includes/cssmin.inc.php b/admin/includes/cssmin.inc.php
index 9c4444d9e77..7bc14c5e350 100644
--- a/admin/includes/cssmin.inc.php
+++ b/admin/includes/cssmin.inc.php
@@ -1,4 +1,4 @@
-
\ No newline at end of file
diff --git a/admin/post-types/shop_order.php b/admin/post-types/shop_order.php
index f3274edc48a..a03571b934d 100644
--- a/admin/post-types/shop_order.php
+++ b/admin/post-types/shop_order.php
@@ -77,7 +77,7 @@ function woocommerce_custom_order_columns($column) {
$user = __('Guest', 'woocommerce');
endif;
- echo ''.sprintf( __('Order #%s', 'woocommerce'), $post->ID ).' ' . __('made by', 'woocommerce') . ' ' . $user;
+ echo ''.sprintf( __('Order %s', 'woocommerce'), $order->get_order_number() ).' ' . __('made by', 'woocommerce') . ' ' . $user;
if ($order->billing_email) :
echo ''.__('Email:', 'woocommerce') . ' ' . ''.esc_html( $order->billing_email ).'';
@@ -330,7 +330,7 @@ function woocommerce_shop_order_search_custom_fields( $wp ) {
if( !isset( $wp->query_vars['s'] ) || !$wp->query_vars['s'] ) return $wp;
if ($wp->query_vars['post_type']!='shop_order') return $wp;
- $search_fields = array(
+ $search_fields = apply_filters( 'woocommerce_shop_order_search_fields', array(
'_order_key',
'_billing_first_name',
'_billing_last_name',
@@ -344,7 +344,7 @@ function woocommerce_shop_order_search_custom_fields( $wp ) {
'_billing_email',
'_order_items',
'_billing_phone'
- );
+ ) );
// Query matching custom fields - this seems faster than meta_query
$post_ids = $wpdb->get_col($wpdb->prepare('SELECT post_id FROM '.$wpdb->postmeta.' WHERE meta_key IN ('.'"'.implode('","', $search_fields).'"'.') AND meta_value LIKE "%%%s%%"', esc_attr($_GET['s']) ));
diff --git a/admin/post-types/writepanels/writepanel-order_data.php b/admin/post-types/writepanels/writepanel-order_data.php
index 16306399534..d934e668655 100644
--- a/admin/post-types/writepanels/writepanel-order_data.php
+++ b/admin/post-types/writepanels/writepanel-order_data.php
@@ -52,7 +52,7 @@ function woocommerce_order_data_meta_box($post) {
-
— #
+
— get_order_number(); ?>