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:
@@ -163,6 +163,9 @@ class WPSEO_Taxonomy {
|
||||
'recommended_replace_vars' => $this->get_recommended_replace_vars(),
|
||||
'scope' => $this->determine_scope(),
|
||||
],
|
||||
'shortcodes' => [
|
||||
'wpseo_shortcode_tags' => $this->get_valid_shortcode_tags(),
|
||||
],
|
||||
],
|
||||
'worker' => [
|
||||
'url' => YoastSEO()->helpers->asset->get_asset_url( 'yoast-seo-analysis-worker' ),
|
||||
@@ -180,6 +183,7 @@ class WPSEO_Taxonomy {
|
||||
'isTerm' => true,
|
||||
'postId' => $tag_id,
|
||||
'usedKeywordsNonce' => \wp_create_nonce( 'wpseo-keyword-usage' ),
|
||||
'linkParams' => WPSEO_Shortlinker::get_query_params(),
|
||||
];
|
||||
$asset_manager->localize_script( 'term-edit', 'wpseoScriptData', $script_data );
|
||||
$asset_manager->enqueue_user_language_script();
|
||||
@@ -445,4 +449,19 @@ class WPSEO_Taxonomy {
|
||||
|
||||
return $recommended_replace_vars->get_recommended_replacevars_for( $page_type );
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns an array with shortcode tags for all registered shortcodes.
|
||||
*
|
||||
* @return array
|
||||
*/
|
||||
private function get_valid_shortcode_tags() {
|
||||
$shortcode_tags = [];
|
||||
|
||||
foreach ( $GLOBALS['shortcode_tags'] as $tag => $description ) {
|
||||
$shortcode_tags[] = $tag;
|
||||
}
|
||||
|
||||
return $shortcode_tags;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user