title: Woocommerce custom plugin, WC_Order error
body: <p>inside a custom plugin placed this code to get an order:</p>
  
  <pre><code> global $woocommerce;
   $order = new WC_Order(5273);
  </code></pre>
  
  <p>(and i have the order with 5273 in the database), but the result is:</p>
  
  <p><br />
  <b>Fatal error</b>:  Cannot use object of type WP_Error as array in <b>D:\www\htdocs..\wp-content\plugins\woocommerce\includes\class-wc-order.php</b> on line <b>83</b><br /></p>
  
  <p>What is the problem?</p>