- Timestamp:
- 08/22/2017 02:01:36 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-plugin-install-list-table.php
r41289 r41290 469 469 if ( is_plugin_active( $status['file'] ) ) { 470 470 $action_links[] = '<button type="button" class="button button-disabled" disabled="disabled">' . _x( 'Active', 'plugin' ) . '</button>'; 471 } elseif ( current_user_can( 'activate_plugin s') ) {471 } elseif ( current_user_can( 'activate_plugin', $status['file'] ) ) { 472 472 $button_text = __( 'Activate' ); 473 473 /* translators: %s: Plugin name */
Note: See TracChangeset
for help on using the changeset viewer.