Merge pull request #7163 from thenbrent/restore_order
[2.3] Restore $theorder
This commit is contained in:
commit
587d533bc9
|
@ -23,6 +23,12 @@ class WC_Meta_Box_Order_Actions {
|
||||||
* Output the metabox
|
* Output the metabox
|
||||||
*/
|
*/
|
||||||
public static function output( $post ) {
|
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 );
|
$order_type_object = get_post_type_object( $post->post_type );
|
||||||
?>
|
?>
|
||||||
<ul class="order_actions submitbox">
|
<ul class="order_actions submitbox">
|
||||||
|
|
Loading…
Reference in New Issue