WordPress.org

Make WordPress Core

Ticket #21032: class-wp-ms-themes-list-table.php.diff

File class-wp-ms-themes-list-table.php.diff, 786 bytes (added by trepmal, 3 years ago)
  • wp-admin/includes/class-wp-ms-themes-list-table.php

     
    240240                if ( 'disabled' != $status ) 
    241241                        $actions['disable-selected'] = $this->is_site_themes ? __( 'Disable' ) : __( 'Network Disable' ); 
    242242                if ( ! $this->is_site_themes ) { 
     243                        if ( current_user_can( 'update_themes' ) ) 
     244                                $actions['update-selected'] = __( 'Update' ); 
    243245                        if ( current_user_can( 'delete_themes' ) ) 
    244246                                $actions['delete-selected'] = __( 'Delete' ); 
    245                         if ( current_user_can( 'update_themes' ) ) 
    246                                 $actions['update-selected'] = __( 'Update' ); 
    247247                } 
    248248                return $actions; 
    249249        }