Updated Yoast SEO plugin 20.10 and woocommerce conditional namespace issue
-
Hello.
Encountered an issue in my site, where I wasn’t able to access the wp-admin when I updated the Yoast SEO 20.10.0 plugin.
This is the file.
/wp-content/plugins/wordpress-seo/src/conditionals/woocommerce-conditional.php<?php namespace Yoast\WP\SEO\Conditionals; /** * Conditional that is only met when WooCommerce is active. */ abstract class WooCommerce_Conditional implements Conditional { /** * Returns true when the WooCommerce plugin is installed and activated. * * @return bool true when the WooCommerce plugin is installed and activated. */ public function is_met() { return \class_exists( 'WooCommerce' ); } }
The only solution we did is to add the “abstract” above the file.
abstract <?php namespace Yoast\WP\SEO\Conditionals; /** * Conditional that is only met when WooCommerce is active. */ class WooCommerce_Conditional implements Conditional { /** * Returns true when the WooCommerce plugin is installed and activated. * * @return bool true when the WooCommerce plugin is installed and activated. */ public function is_met() { return \class_exists( 'WooCommerce' ); } }
But now, I just noticed that the “abstract” I added was deleted and the issue was gone. I need to know why does this type of issue happened and what causing this to occur? Is this related to the plugin update?
I hope someone can give me idea about this.
Thank you.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Updated Yoast SEO plugin 20.10 and woocommerce conditional namespace issue’ is closed to new replies.