| @@ -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 | } |