Cherry pick 50608 into release/9.2 (#50647)
* Exclude privacy page from the store pages -- it is a core page (#50608) * Exclude privacy page from the store pages -- it is a core page * Add changefile(s) from automation for the following project(s): woocommerce * Remove privacy page deletion in unit test --------- Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com> * Prep for cherry pick 50608 --------- Co-authored-by: Moon <moon.kyong@automattic.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: Ilyas Foo <foo.ilyas@gmail.com> Co-authored-by: WooCommerce Bot <no-reply@woocommerce.com>
This commit is contained in:
parent
79d293a127
commit
7be480d24c
|
@ -155,7 +155,6 @@ class WCAdminHelper {
|
||||||
'shop' => wc_get_page_id( 'shop' ),
|
'shop' => wc_get_page_id( 'shop' ),
|
||||||
'cart' => wc_get_page_id( 'cart' ),
|
'cart' => wc_get_page_id( 'cart' ),
|
||||||
'checkout' => wc_get_page_id( 'checkout' ),
|
'checkout' => wc_get_page_id( 'checkout' ),
|
||||||
'privacy' => wc_privacy_policy_page_id(),
|
|
||||||
'terms' => wc_terms_and_conditions_page_id(),
|
'terms' => wc_terms_and_conditions_page_id(),
|
||||||
'coming_soon' => wc_get_page_id( 'coming_soon' ),
|
'coming_soon' => wc_get_page_id( 'coming_soon' ),
|
||||||
);
|
);
|
||||||
|
|
|
@ -44,7 +44,6 @@ class WC_Admin_Tests_Admin_Helper extends WC_Unit_Test_Case {
|
||||||
wp_delete_post( get_option( 'woocommerce_cart_page_id' ), true );
|
wp_delete_post( get_option( 'woocommerce_cart_page_id' ), true );
|
||||||
wp_delete_post( get_option( 'woocommerce_checkout_page_id' ), true );
|
wp_delete_post( get_option( 'woocommerce_checkout_page_id' ), true );
|
||||||
wp_delete_post( get_option( 'woocommerce_myaccount_page_id' ), true );
|
wp_delete_post( get_option( 'woocommerce_myaccount_page_id' ), true );
|
||||||
wp_delete_post( wc_privacy_policy_page_id(), true );
|
|
||||||
wp_delete_post( wc_terms_and_conditions_page_id(), true );
|
wp_delete_post( wc_terms_and_conditions_page_id(), true );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue