Fixed bug triggering admin panel to not run

This commit is contained in:
Ross Trottier 2024-05-02 15:51:56 -06:00
parent 7f72fd5832
commit a56b2f4910

View File

@ -46,8 +46,9 @@ add_filter( 'woocommerce_account_menu_items', 'federated_add_provision_info_link
add_action( 'woocommerce_account_content', 'federated_provision_info_content', 1 ); add_action( 'woocommerce_account_content', 'federated_provision_info_content', 1 );
function federated_provision_info_content() { function federated_provision_info_content() {
global $wp; global $wp;
$this_page_url = add_query_arg( $wp->query_vars, home_url() ); $home_url = home_url();
if($this_page_url != 'http://feddev.local?page&pagename=my-account'){ $this_page_url = add_query_arg( $wp->query_vars, $home_url );
if($this_page_url != $home_url . '?page&pagename=my-account'){
return; return;
} }