Line up array
This commit is contained in:
parent
1647e253a0
commit
020e24225a
|
@ -223,15 +223,15 @@ class WC_Data_Store_WP {
|
||||||
// Other vars get mapped to a 'post_*' or just left alone.
|
// Other vars get mapped to a 'post_*' or just left alone.
|
||||||
} else {
|
} else {
|
||||||
$key_mapping = array (
|
$key_mapping = array (
|
||||||
'parent' => 'post_parent',
|
'parent' => 'post_parent',
|
||||||
'parent__in' => 'post_parent__in',
|
'parent__in' => 'post_parent__in',
|
||||||
'parent__not_in' => 'post_parent__not_in',
|
'parent__not_in' => 'post_parent__not_in',
|
||||||
'in' => 'post__in',
|
'in' => 'post__in',
|
||||||
'not_in' => 'post__not_in',
|
'not_in' => 'post__not_in',
|
||||||
'password' => 'post_password',
|
'password' => 'post_password',
|
||||||
'status' => 'post_status',
|
'status' => 'post_status',
|
||||||
'per_page' => 'posts_per_page',
|
'per_page' => 'posts_per_page',
|
||||||
'type' => 'post_type',
|
'type' => 'post_type',
|
||||||
);
|
);
|
||||||
|
|
||||||
if ( isset( $key_mapping[ $key ] ) ) {
|
if ( isset( $key_mapping[ $key ] ) ) {
|
||||||
|
|
Loading…
Reference in New Issue