mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Remove update notifications from site-themes. See #14897
git-svn-id: http://svn.automattic.com/wordpress/trunk@16629 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
0ce36a9d29
commit
91d8dac6b7
@ -97,7 +97,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
||||
}
|
||||
}
|
||||
|
||||
if ( !current_user_can( 'update_themes' ) )
|
||||
if ( !current_user_can( 'update_themes' ) || $this->is_site_themes )
|
||||
$themes['upgrade'] = array();
|
||||
|
||||
if ( $s ) {
|
||||
@ -235,7 +235,7 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
||||
$actions['enable-selected'] = __( 'Enable' );
|
||||
if ( 'disabled' != $status )
|
||||
$actions['disable-selected'] = __( 'Disable' );
|
||||
if ( current_user_can( 'update_themes' ) )
|
||||
if ( current_user_can( 'update_themes' ) && !$this->is_site_themes )
|
||||
$actions['update-selected'] = __( 'Update' );
|
||||
|
||||
return $actions;
|
||||
@ -344,6 +344,8 @@ class WP_MS_Themes_List_Table extends WP_List_Table {
|
||||
|
||||
echo "</tr>";
|
||||
|
||||
if ( $this->is_site_themes )
|
||||
remove_action( "after_theme_row_$theme_key", 'wp_theme_update_row' );
|
||||
do_action( 'after_theme_row', $theme_key, $theme, $status );
|
||||
do_action( "after_theme_row_$theme_key", $theme_key, $theme, $status );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user