WordPress.org

Make WordPress Core

Changeset 12724


Ignore:
Timestamp:
01/14/10 19:15:00 (4 years ago)
Author:
wpmuguru
Message:

revert permission check in [12722], props ddebernardy, See #11894

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/themes.php

    r12722 r12724  
    5757 
    5858$help = '<p>' . __('Themes give your WordPress style. Once a theme is installed, you may preview it, activate it or deactivate it here.') . '</p>'; 
    59 if ( ( !is_multisite() && current_user_can('install_themes') ) || is_super_admin() ) { 
     59if ( current_user_can('install_themes') ) { 
    6060    $help .= '<p>' . sprintf(__('You can find additional themes for your site by using the new <a href="%1$s">Theme Browser/Installer</a> functionality or by browsing the <a href="http://wordpress.org/extend/themes/">WordPress Theme Directory</a> directly and installing manually.  To install a theme <em>manually</em>, <a href="%2$s">upload its ZIP archive with the new uploader</a> or copy its folder via FTP into your <code>wp-content/themes</code> directory.'), 'theme-install.php', 'theme-install.php?tab=upload' ) . '</p>'; 
    6161    $help .= '<p>' . __('Once a theme is uploaded, you should see it on this page.') . '</p>' ; 
     
    250250    $actions[] = '<a href="' . $activate_link .  '" class="activatelink" title="' . $activate_text . '">' . __('Activate') . '</a>'; 
    251251    $actions[] = '<a href="' . $preview_link . '" class="thickbox thickbox-preview" title="' . esc_attr(sprintf(__('Preview &#8220;%s&#8221;'), $theme_name)) . '">' . __('Preview') . '</a>'; 
    252     if ( ( !is_multisite() && current_user_can('update_themes') ) || is_super_admin() ) 
     252    if ( current_user_can('update_themes') ) 
    253253        $actions[] = '<a class="submitdelete deletion" href="' . wp_nonce_url("themes.php?action=delete&amp;template=$stylesheet", 'delete-theme_' . $stylesheet) . '" onclick="' . "if ( confirm('" . esc_js(sprintf( __("You are about to delete this theme '%s'\n  'Cancel' to stop, 'OK' to delete."), $theme_name )) . "') ) {return true;}return false;" . '">' . __('Delete') . '</a>'; 
    254254    $actions = apply_filters('theme_action_links', $actions, $themes[$theme_name]); 
Note: See TracChangeset for help on using the changeset viewer.