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

@@ -5,6 +5,7 @@ namespace Yoast\WP\SEO\Premium\WordPress;
use WPSEO_Premium_Prominent_Words_Support;
use WPSEO_Premium_Prominent_Words_Unindexed_Post_Query;
use WPSEO_Replace_Vars;
use WPSEO_Shortlinker;
/**
* Wrapper class for Premium classes.
@@ -57,4 +58,19 @@ class Wrapper {
return $instance;
}
/**
* Wrapper method for returning the WPSEO_Shortlinker object for use in dependency injection.
*
* @return WPSEO_Shortlinker The WPSEO_Shortlinker global.
*/
public static function get_shortlinker() {
static $instance;
if ( \is_null( $instance ) ) {
$instance = new WPSEO_Shortlinker();
}
return $instance;
}
}