PluginProbe
Yoast SEO – Advanced SEO with real-time guidance and built-in AI / 28.5
Yoast SEO – Advanced SEO with real-time guidance and built-in AI v28.5
28.5 28.4 28.3 28.2 28.1 28.0 27.9 27.8 27.7 27.6 27.5 trunk 18.0 18.1 18.2 18.3 18.4 18.4.1 18.5 18.5.1 18.6 18.7 18.8 18.9 19.0 All 129 releases
← All changes | admin/class-expose-shortlinks.php +40 -26 18.428.5 View file →
@@ -12,9 +12,9 @@
12 12
13 13 /**
14 14 * Array containing the keys and shortlinks.
15 15 *
16 - * @var array
16 + * @var array<string, string>
17 17 */
18 18 private $shortlinks = [
19 19 'shortlinks.advanced.allow_search_engines' => 'https://yoa.st/allow-search-engines',
20 20 'shortlinks.advanced.follow_links' => 'https://yoa.st/follow-links',
@@ -27,32 +27,49 @@
27 27 'shortlinks.focus_keyword_info' => 'https://yoa.st/focus-keyword',
28 28 'shortlinks.nofollow_sponsored' => 'https://yoa.st/nofollow-sponsored',
29 29 'shortlinks.snippet_preview_info' => 'https://yoa.st/snippet-preview',
30 30 'shortlinks.cornerstone_content_info' => 'https://yoa.st/1i9',
31 - 'shortlinks.upsell.social_previews' => 'https://yoa.st/social-preview-cta',
32 - 'shortlinks.upsell.sidebar.focus_keyword_synonyms_link' => 'https://yoa.st/textlink-synonyms-popup-sidebar',
33 - 'shortlinks.upsell.sidebar.focus_keyword_synonyms_button' => 'https://yoa.st/keyword-synonyms-popup-sidebar',
34 - 'shortlinks.upsell.sidebar.focus_keyword_additional_link' => 'https://yoa.st/textlink-keywords-popup-sidebar',
35 - 'shortlinks.upsell.sidebar.focus_keyword_additional_button' => 'https://yoa.st/add-keywords-popup-sidebar',
31 + 'shortlinks.upsell.social_preview.social' => 'https://yoa.st/social-preview-facebook',
32 + 'shortlinks.upsell.social_preview.x' => 'https://yoa.st/social-preview-twitter',
33 + 'shortlinks.upsell.sidebar.news' => 'https://yoa.st/get-news-sidebar',
34 + 'shortlinks.upsell.sidebar.premium_seo_analysis_button' => 'https://yoa.st/premium-seo-analysis-sidebar',
36 35 'shortlinks.upsell.sidebar.additional_link' => 'https://yoa.st/textlink-keywords-sidebar',
37 36 'shortlinks.upsell.sidebar.additional_button' => 'https://yoa.st/add-keywords-sidebar',
37 + 'shortlinks.upsell.sidebar.word_complexity' => 'https://yoa.st/word-complexity-sidebar',
38 + 'shortlinks.upsell.sidebar.internal_linking_suggestions' => 'https://yoa.st/internal-linking-suggestions-sidebar',
39 + 'shortlinks.upsell.sidebar.highlighting_seo_analysis' => 'https://yoa.st/highlighting-seo-analysis',
40 + 'shortlinks.upsell.sidebar.highlighting_readability_analysis' => 'https://yoa.st/highlighting-readability-analysis',
41 + 'shortlinks.upsell.sidebar.highlighting_inclusive_analysis' => 'https://yoa.st/highlighting-inclusive-analysis',
42 + 'shortlinks.upsell.sidebar.content_blocks' => 'https://yoa.st/content-blocks-sidebar',
43 + 'shortlinks.upsell.metabox.news' => 'https://yoa.st/get-news-metabox',
38 44 'shortlinks.upsell.metabox.go_premium' => 'https://yoa.st/pe-premium-page',
39 - 'shortlinks.upsell.metabox.focus_keyword_synonyms_link' => 'https://yoa.st/textlink-synonyms-popup-metabox',
40 - 'shortlinks.upsell.metabox.focus_keyword_synonyms_button' => 'https://yoa.st/keyword-synonyms-popup',
41 - 'shortlinks.upsell.metabox.focus_keyword_additional_link' => 'https://yoa.st/textlink-keywords-popup-metabox',
42 - 'shortlinks.upsell.metabox.focus_keyword_additional_button' => 'https://yoa.st/add-keywords-popup',
45 + 'shortlinks.upsell.metabox.premium_seo_analysis_button' => 'https://yoa.st/premium-seo-analysis-metabox',
43 46 'shortlinks.upsell.metabox.additional_link' => 'https://yoa.st/textlink-keywords-metabox',
44 47 'shortlinks.upsell.metabox.additional_button' => 'https://yoa.st/add-keywords-metabox',
48 + 'shortlinks.upsell.metabox.word_complexity' => 'https://yoa.st/word-complexity-metabox',
49 + 'shortlinks.upsell.metabox.internal_linking_suggestions' => 'https://yoa.st/internal-linking-suggestions-metabox',
50 + 'shortlinks.upsell.metabox.content_blocks' => 'https://yoa.st/content-blocks-metabox',
45 51 'shortlinks.upsell.gsc.create_redirect_button' => 'https://yoa.st/redirects',
46 52 'shortlinks.readability_analysis_info' => 'https://yoa.st/readability-analysis',
53 + 'shortlinks.inclusive_language_analysis_info' => 'https://yoa.st/inclusive-language-analysis',
54 + 'shortlinks.social_previews_info' => 'https://yoa.st/social-preview-admin-bar',
47 55 'shortlinks.activate_premium_info' => 'https://yoa.st/activate-subscription',
48 - 'shortlinks.upsell.sidebar.morphology_upsell_metabox' => 'https://yoa.st/morphology-upsell-metabox',
49 - 'shortlinks.upsell.sidebar.morphology_upsell_sidebar' => 'https://yoa.st/morphology-upsell-sidebar',
50 - 'shortlinks.semrush.volume_help' => 'https://yoa.st/3-v',
51 - 'shortlinks.semrush.trend_help' => 'https://yoa.st/3-v',
52 - 'shortlinks.semrush.prices' => 'https://yoa.st/semrush-prices',
53 - 'shortlinks.semrush.premium_landing_page' => 'https://yoa.st/413',
54 56 'shortlinks.wincher.seo_performance' => 'https://yoa.st/wincher-integration',
57 + 'shortlinks-insights-estimated_reading_time' => 'https://yoa.st/4fd',
58 + 'shortlinks-insights-flesch_reading_ease' => 'https://yoa.st/34r',
59 + 'shortlinks-insights-flesch_reading_ease_sidebar' => 'https://yoa.st/4mf',
60 + 'shortlinks-insights-flesch_reading_ease_metabox' => 'https://yoa.st/4mg',
61 + 'shortlinks-insights-flesch_reading_ease_article' => 'https://yoa.st/34s',
62 + 'shortlinks-insights-keyword_research_link' => 'https://yoa.st/keyword-research-metabox',
63 + 'shortlinks-insights-upsell-sidebar-prominent_words' => 'https://yoa.st/prominent-words-upsell-sidebar',
64 + 'shortlinks-insights-upsell-metabox-prominent_words' => 'https://yoa.st/prominent-words-upsell-metabox',
65 + 'shortlinks-insights-upsell-elementor-prominent_words' => 'https://yoa.st/prominent-words-upsell-elementor',
66 + 'shortlinks-insights-word_count' => 'https://yoa.st/word-count',
67 + 'shortlinks-insights-upsell-sidebar-text_formality' => 'https://yoa.st/formality-upsell-sidebar',
68 + 'shortlinks-insights-upsell-metabox-text_formality' => 'https://yoa.st/formality-upsell-metabox',
69 + 'shortlinks-insights-upsell-elementor-text_formality' => 'https://yoa.st/formality-upsell-elementor',
70 + 'shortlinks-insights-text_formality_info_free' => 'https://yoa.st/formality-free',
71 + 'shortlinks-insights-text_formality_info_premium' => 'https://yoa.st/formality',
55 72 ];
56 73
57 74 /**
58 75 * Registers all hooks to WordPress.
@@ -65,11 +82,11 @@
65 82
66 83 /**
67 84 * Adds shortlinks to the passed array.
68 85 *
69 - * @param array $input The array to add shortlinks to.
86 + * @param array<string, string|array<string, string>> $input The array to add shortlinks to.
70 87 *
71 - * @return array The passed array with the additional shortlinks.
88 + * @return array<string, string|array<string, string>> The passed array with the additional shortlinks.
72 89 */
73 90 public function expose_shortlinks( $input ) {
74 91 foreach ( $this->get_shortlinks() as $key => $shortlink ) {
75 92 $input[ $key ] = WPSEO_Shortlinker::get( $shortlink );
@@ -82,9 +99,9 @@
82 99
83 100 /**
84 101 * Retrieves the shortlinks.
85 102 *
86 - * @return array The shortlinks.
103 + * @return array<string, string> The shortlinks.
87 104 */
88 105 private function get_shortlinks() {
89 106 if ( ! $this->is_term_edit() ) {
90 107 return $this->shortlinks;
@@ -91,15 +108,12 @@
91 108 }
92 109
93 110 $shortlinks = $this->shortlinks;
94 111
95 - $shortlinks['shortlinks.upsell.metabox.focus_keyword_synonyms_link'] = 'https://yoa.st/textlink-synonyms-popup-metabox-term';
96 - $shortlinks['shortlinks.upsell.metabox.focus_keyword_synonyms_button'] = 'https://yoa.st/keyword-synonyms-popup-term';
97 - $shortlinks['shortlinks.upsell.metabox.focus_keyword_additional_link'] = 'https://yoa.st/textlink-keywords-popup-metabox-term';
98 - $shortlinks['shortlinks.upsell.metabox.focus_keyword_additional_button'] = 'https://yoa.st/add-keywords-popup-term';
99 - $shortlinks['shortlinks.upsell.metabox.additional_link'] = 'https://yoa.st/textlink-keywords-metabox-term';
100 - $shortlinks['shortlinks.upsell.metabox.additional_button'] = 'https://yoa.st/add-keywords-metabox-term';
101 - $shortlinks['shortlinks.upsell.sidebar.morphology_upsell_metabox'] = 'https://yoa.st/morphology-upsell-metabox-term';
112 + $shortlinks['shortlinks.upsell.metabox.additional_link'] = 'https://yoa.st/textlink-keywords-metabox-term';
113 + $shortlinks['shortlinks.upsell.metabox.additional_button'] = 'https://yoa.st/add-keywords-metabox-term';
114 + $shortlinks['shortlinks.upsell.metabox.word_complexity'] = 'https://yoa.st/word-complexity-metabox-term';
115 + $shortlinks['shortlinks.upsell.metabox.internal_linking_suggestions'] = 'https://yoa.st/internal-linking-suggestions-metabox-term';
102 116
103 117 return $shortlinks;
104 118 }
105 119