equal
deleted
inserted
replaced
20 /** |
20 /** |
21 * Holds the plugin slug in the Plugin Directory. |
21 * Holds the plugin slug in the Plugin Directory. |
22 * |
22 * |
23 * @since 2.8.0 |
23 * @since 2.8.0 |
24 * |
24 * |
25 * @var object |
25 * @var string |
26 */ |
26 */ |
27 public $plugin = ''; |
27 public $plugin = ''; |
28 |
28 |
29 /** |
29 /** |
30 * Whether the plugin is active. |
30 * Whether the plugin is active. |
96 __( 'Activate Plugin' ) |
96 __( 'Activate Plugin' ) |
97 ), |
97 ), |
98 'plugins_page' => sprintf( |
98 'plugins_page' => sprintf( |
99 '<a href="%s" target="_parent">%s</a>', |
99 '<a href="%s" target="_parent">%s</a>', |
100 self_admin_url( 'plugins.php' ), |
100 self_admin_url( 'plugins.php' ), |
101 __( 'Return to Plugins page' ) |
101 __( 'Go to Plugins page' ) |
102 ), |
102 ), |
103 ); |
103 ); |
104 |
104 |
105 if ( $this->plugin_active || ! $this->result || is_wp_error( $this->result ) || ! current_user_can( 'activate_plugin', $this->plugin ) ) { |
105 if ( $this->plugin_active || ! $this->result || is_wp_error( $this->result ) || ! current_user_can( 'activate_plugin', $this->plugin ) ) { |
106 unset( $update_actions['activate_plugin'] ); |
106 unset( $update_actions['activate_plugin'] ); |