WordPress.org

Make WordPress Core

Changeset 16629


Ignore:
Timestamp:
11/30/2010 08:31:49 PM (9 years ago)
Author:
PeteMall
Message:

Remove update notifications from site-themes. See #14897

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/class-wp-ms-themes-list-table.php

    r16601 r16629  
    9898        }
    9999
    100         if ( !current_user_can( 'update_themes' ) )
     100        if ( !current_user_can( 'update_themes' ) || $this->is_site_themes )
    101101            $themes['upgrade'] = array();
    102102
     
    236236        if ( 'disabled' != $status )
    237237            $actions['disable-selected'] = __( 'Disable' );
    238         if ( current_user_can( 'update_themes' ) )
     238        if ( current_user_can( 'update_themes' ) && !$this->is_site_themes )
    239239            $actions['update-selected'] = __( 'Update' );
    240240
     
    345345        echo "</tr>";
    346346
     347        if ( $this->is_site_themes )
     348            remove_action( "after_theme_row_$theme_key", 'wp_theme_update_row' );
    347349        do_action( 'after_theme_row', $theme_key, $theme, $status );
    348350        do_action( "after_theme_row_$theme_key", $theme_key, $theme, $status );
Note: See TracChangeset for help on using the changeset viewer.