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-admin-utils.php +6 -5 18.328.5 View file →
@@ -23,9 +23,9 @@
23 23 }
24 24
25 25 return wp_nonce_url(
26 26 self_admin_url( 'update.php?action=install-plugin&plugin=' . dirname( $slug ) ),
27 - 'install-plugin_' . dirname( $slug )
27 + 'install-plugin_' . dirname( $slug ),
28 28 );
29 29 }
30 30
31 31 /**
@@ -35,15 +35,15 @@
35 35 *
36 36 * @return string The activation URL. Empty string if the current user doesn't have the proper capabilities.
37 37 */
38 38 public static function get_activation_url( $slug ) {
39 - if ( ! current_user_can( 'install_plugins' ) ) {
39 + if ( ! current_user_can( 'activate_plugins' ) ) {
40 40 return '';
41 41 }
42 42
43 43 return wp_nonce_url(
44 44 self_admin_url( 'plugins.php?action=activate&plugin_status=all&paged=1&s&plugin=' . $slug ),
45 - 'activate-plugin_' . $slug
45 + 'activate-plugin_' . $slug,
46 46 );
47 47 }
48 48
49 49 /**
@@ -62,9 +62,9 @@
62 62
63 63 return sprintf(
64 64 '<a href="%s">%s</a>',
65 65 $install_url,
66 - $plugin['title']
66 + $plugin['title'],
67 67 );
68 68 }
69 69
70 70 /**
@@ -74,8 +74,9 @@
74 74 */
75 75 public static function get_new_tab_message() {
76 76 return sprintf(
77 77 '<span class="screen-reader-text">%s</span>',
78 - esc_html__( '(Opens in a new browser tab)', 'wordpress-seo' )
78 + /* translators: Hidden accessibility text. */
79 + esc_html__( '(Opens in a new browser tab)', 'wordpress-seo' ),
79 80 );
80 81 }
81 82 }