WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/18/2010 06:43:35 PM (10 years ago)
Author:
nacin
Message:

Use the update_core, update_plugins and update_themes caps in update-core.php. fixes #15866.

File:
1 edited

Legend:

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

    r16815 r17048  
    5252    $update_title = !empty($update_title) ? esc_attr(implode(', ', $update_title)) : '';
    5353
    54     $submenu[ 'index.php' ][10] = array( sprintf( __('Updates %s'), "<span class='update-plugins count-$update_count' title='$update_title'><span class='update-count'>" . number_format_i18n($update_count) . "</span></span>" ), 'install_plugins',  'update-core.php');
     54    $submenu[ 'index.php' ][10] = array( sprintf( __('Updates %s'), "<span class='update-plugins count-$update_count' title='$update_title'><span class='update-count'>" . number_format_i18n($update_count) . "</span></span>" ), 'update_core',  'update-core.php');
    5555    unset($plugin_update_count, $theme_update_count, $wordpress_update_count, $update_count, $update_title, $update_themes, $update_plugins, $update_wordpress);
    5656}
Note: See TracChangeset for help on using the changeset viewer.