Merge pull request #7163 from thenbrent/restore_order

[2.3] Restore $theorder
This commit is contained in:
Mike Jolley 2015-01-20 08:36:29 +00:00
commit 587d533bc9
1 changed files with 6 additions and 0 deletions

View File

@ -23,6 +23,12 @@ class WC_Meta_Box_Order_Actions {
* Output the metabox
*/
public static function output( $post ) {
global $theorder;
if ( ! is_object( $theorder ) ) {
$theorder = wc_get_order( $post->ID );
}
$order_type_object = get_post_type_object( $post->post_type );
?>
<ul class="order_actions submitbox">