Merged in feature/314-dev-dev01 (pull request #24)

auto-patch  314-dev-dev01-2024-01-25T04_09_02

* auto-patch  314-dev-dev01-2024-01-25T04_09_02
This commit is contained in:
Tony Volpe
2024-01-25 04:11:47 +00:00
parent 6b67473553
commit 68dbe860e9
540 changed files with 3445 additions and 2131 deletions

View File

@@ -3,6 +3,7 @@
namespace Yoast\WP\Lib;
use Exception;
use WPSEO_Utils;
use Yoast\WP\Lib\Dependency_Injection\Container_Registry;
use Yoast\WP\SEO\Exceptions\Forbidden_Property_Mutation_Exception;
use Yoast\WP\SEO\Loader;
@@ -30,6 +31,8 @@ abstract class Abstract_Main {
/**
* Loads the plugin.
*
* @return void
*
* @throws Exception If loading fails and YOAST_ENVIRONMENT is development.
*/
public function load() {
@@ -78,7 +81,7 @@ abstract class Abstract_Main {
return $this->cached_surfaces[ $property ];
}
throw new Exception( sprintf( 'Property $%s does not exist.', $property ) );
throw new Exception( \sprintf( 'Property $%s does not exist.', $property ) );
}
/**
@@ -161,7 +164,7 @@ abstract class Abstract_Main {
*/
protected function is_development() {
try {
return \WPSEO_Utils::is_development_mode();
return WPSEO_Utils::is_development_mode();
}
catch ( Exception $exception ) {
// E.g. when WordPress and/or WordPress SEO are not loaded.