Skip to content

Commit

Permalink
Update function name to spell woocommerce correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonwebz committed Jan 24, 2025
1 parent 40b4afe commit b4dfbe8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion includes/helper-functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1047,7 +1047,7 @@ function edac_generate_link_type( $query_args = [], $type = 'pro', $args = [] ):
*
* @return bool
*/
function edac_is_woocommerse_enabled() {
function edac_is_woocommerce_enabled() {
return function_exists( 'WC' ) && class_exists( 'WooCommerce' );
}

Expand Down
4 changes: 2 additions & 2 deletions includes/validate.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@ function edac_validate( $post_ID, $post, $action ) {
do_action( 'edac_after_get_content', $post_ID, $content, $action );

if ( ! $content['html'] ) {
// The woocommerse checkout page will always be a redirect when it has no items. The redirect
// The woocommerce checkout page will always be a redirect when it has no items. The redirect
// will cause the content to be empty.
// TEMPORARY FIX: Just return without setting this as a password protected page. In future we
// will need to fix this properly by adding a product to the cart before checking.
if ( edac_check_if_post_id_is_woocommerse_checkout_page( $post_ID ) ) {
if ( edac_check_if_post_id_is_woocommerce_checkout_page( $post_ID ) ) {
return;
}

Expand Down

0 comments on commit b4dfbe8

Please sign in to comment.