Fix inverted logic. phpdoc update. Props nacin. fixes #11935

git-svn-id: https://develop.svn.wordpress.org/trunk@12754 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2010-01-18 22:34:16 +00:00
parent f260b32d25
commit dbb773aa8e
2 changed files with 3 additions and 3 deletions

View File

@ -592,9 +592,9 @@ function populate_roles_280() {
} }
/** /**
* Create and modify WordPress roles for WordPress 2.8. * Create and modify WordPress roles for WordPress 3.0.
* *
* @since 2.8.0 * @since 3.0
*/ */
function populate_roles_300() { function populate_roles_300() {
$role =& get_role( 'administrator' ); $role =& get_role( 'administrator' );

View File

@ -159,7 +159,7 @@ function theme_update_available( $theme ) {
<div class="wrap"> <div class="wrap">
<?php screen_icon(); ?> <?php screen_icon(); ?>
<h2><?php echo esc_html( $title ); if ( !current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php } ?></h2> <h2><?php echo esc_html( $title ); if ( current_user_can('install_themes') ) { ?> <a href="theme-install.php" class="button add-new-h2"><?php echo esc_html_x('Add New', 'theme'); ?></a><?php } ?></h2>
<h3><?php _e('Current Theme'); ?></h3> <h3><?php _e('Current Theme'); ?></h3>
<div id="current-theme"> <div id="current-theme">