Merged in feature/MAW-855-import-code-into-aws (pull request #2)

code import from pantheon

* code import from pantheon
This commit is contained in:
Tony Volpe
2023-12-04 23:08:14 +00:00
parent 8c9b1312bc
commit 8f4b5efda6
4766 changed files with 185592 additions and 239967 deletions

View File

@@ -15,7 +15,7 @@ if ( ! function_exists( 'add_filter' ) ) {
* {@internal Nobody should be able to overrule the real version number as this can cause
* serious issues with the options, so no if ( ! defined() ).}}
*/
define( 'WPSEO_VERSION', '20.13' );
define( 'WPSEO_VERSION', '21.5' );
if ( ! defined( 'WPSEO_PATH' ) ) {
@@ -35,8 +35,8 @@ define( 'YOAST_VENDOR_DEFINE_PREFIX', 'YOASTSEO_VENDOR__' );
define( 'YOAST_VENDOR_PREFIX_DIRECTORY', 'vendor_prefixed' );
define( 'YOAST_SEO_PHP_REQUIRED', '7.2.5' );
define( 'YOAST_SEO_WP_TESTED', '6.3' );
define( 'YOAST_SEO_WP_REQUIRED', '6.1' );
define( 'YOAST_SEO_WP_TESTED', '6.4' );
define( 'YOAST_SEO_WP_REQUIRED', '6.2' );
if ( ! defined( 'WPSEO_NAMESPACES' ) ) {
define( 'WPSEO_NAMESPACES', true );
@@ -80,6 +80,17 @@ elseif ( ! class_exists( 'WPSEO_Options' ) ) { // Still checking since might be
return;
}
/**
* Include the file from the `symfony/deprecation-contracts` dependency instead of autoloading it via composer.
*
* We need to do that because autoloading via composer prevents the vendor-prefixing of the dependency itself.
* Note that we don't expect the function to be ever called since the OAuth2 library should not provide invalid input.
*/
$deprecation_contracts_file = WPSEO_PATH . 'vendor_prefixed/symfony/deprecation-contracts/functions.php';
if ( is_readable( $deprecation_contracts_file ) ) {
include $deprecation_contracts_file;
}
if ( function_exists( 'spl_autoload_register' ) ) {
spl_autoload_register( 'wpseo_auto_load' );
}