Revert "Update WC_Order_Data_Store_CPT::get_wp_query_args() to use post_author instead of _customer_user"

This reverts commit 8db3236889.
This commit is contained in:
Rodrigo Primo 2018-10-29 11:08:53 -03:00
parent 4151c9e5cb
commit e47ebfaafb
1 changed files with 0 additions and 5 deletions

View File

@ -651,11 +651,6 @@ class WC_Order_Data_Store_CPT extends Abstract_WC_Order_Data_Store_CPT implement
'page' => 'paged',
);
// On WC 3.5.0 the ID of the user that placed the order was moved from the post meta _customer_user to the post_author field in the wp_posts table.
if ( version_compare( get_option( 'woocommerce_db_version' ), '3.5.0', '>=' ) ) {
$key_mapping['customer_id'] = 'author';
}
foreach ( $key_mapping as $query_key => $db_key ) {
if ( isset( $query_vars[ $query_key ] ) ) {
$query_vars[ $db_key ] = $query_vars[ $query_key ];