- Timestamp:
- 11/30/2010 08:31:49 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/class-wp-ms-themes-list-table.php
r16601 r16629 98 98 } 99 99 100 if ( !current_user_can( 'update_themes' ) )100 if ( !current_user_can( 'update_themes' ) || $this->is_site_themes ) 101 101 $themes['upgrade'] = array(); 102 102 … … 236 236 if ( 'disabled' != $status ) 237 237 $actions['disable-selected'] = __( 'Disable' ); 238 if ( current_user_can( 'update_themes' ) )238 if ( current_user_can( 'update_themes' ) && !$this->is_site_themes ) 239 239 $actions['update-selected'] = __( 'Update' ); 240 240 … … 345 345 echo "</tr>"; 346 346 347 if ( $this->is_site_themes ) 348 remove_action( "after_theme_row_$theme_key", 'wp_theme_update_row' ); 347 349 do_action( 'after_theme_row', $theme_key, $theme, $status ); 348 350 do_action( "after_theme_row_$theme_key", $theme_key, $theme, $status );
Note: See TracChangeset
for help on using the changeset viewer.