Skip to content

Commit

Permalink
Errors do not need localisation
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejolley committed Jun 6, 2017
1 parent c77347d commit e83450b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/wc-order-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function wc_get_orders( $args ) {
*/
function wc_get_order( $the_order = false ) {
if ( ! did_action( 'woocommerce_after_register_post_type' ) ) {
wc_doing_it_wrong( __FUNCTION__, __( 'wc_get_order should not be called before post types are registered (woocommerce_after_register_post_type action).', 'woocommerce' ), '2.5' );
wc_doing_it_wrong( __FUNCTION__, 'wc_get_order should not be called before post types are registered (woocommerce_after_register_post_type action)', '2.5' );
return false;
}
return WC()->order_factory->get_order( $the_order );
Expand Down

0 comments on commit e83450b

Please sign in to comment.