Ticket #14897: 14897.19.diff
File 14897.19.diff, 1.1 KB (added by , 14 years ago) |
---|
-
wp-admin/includes/class-wp-ms-themes-list-table.php
97 97 } 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 103 103 if ( $s ) { … … 235 235 $actions['enable-selected'] = __( 'Enable' ); 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 241 241 return $actions; … … 344 344 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 ); 349 351 }