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 +5 -4 28.028.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',
@@ -50,8 +50,9 @@
50 50 'shortlinks.upsell.metabox.content_blocks' => 'https://yoa.st/content-blocks-metabox',
51 51 'shortlinks.upsell.gsc.create_redirect_button' => 'https://yoa.st/redirects',
52 52 'shortlinks.readability_analysis_info' => 'https://yoa.st/readability-analysis',
53 53 'shortlinks.inclusive_language_analysis_info' => 'https://yoa.st/inclusive-language-analysis',
54 + 'shortlinks.social_previews_info' => 'https://yoa.st/social-preview-admin-bar',
54 55 'shortlinks.activate_premium_info' => 'https://yoa.st/activate-subscription',
55 56 'shortlinks.wincher.seo_performance' => 'https://yoa.st/wincher-integration',
56 57 'shortlinks-insights-estimated_reading_time' => 'https://yoa.st/4fd',
57 58 'shortlinks-insights-flesch_reading_ease' => 'https://yoa.st/34r',
@@ -81,11 +82,11 @@
81 82
82 83 /**
83 84 * Adds shortlinks to the passed array.
84 85 *
85 - * @param array $input The array to add shortlinks to.
86 + * @param array<string, string|array<string, string>> $input The array to add shortlinks to.
86 87 *
87 - * @return array The passed array with the additional shortlinks.
88 + * @return array<string, string|array<string, string>> The passed array with the additional shortlinks.
88 89 */
89 90 public function expose_shortlinks( $input ) {
90 91 foreach ( $this->get_shortlinks() as $key => $shortlink ) {
91 92 $input[ $key ] = WPSEO_Shortlinker::get( $shortlink );
@@ -98,9 +99,9 @@
98 99
99 100 /**
100 101 * Retrieves the shortlinks.
101 102 *
102 - * @return array The shortlinks.
103 + * @return array<string, string> The shortlinks.
103 104 */
104 105 private function get_shortlinks() {
105 106 if ( ! $this->is_term_edit() ) {
106 107 return $this->shortlinks;