Make WordPress Core

Changeset 4130


Ignore:
Timestamp:
08/30/2006 09:12:29 AM (18 years ago)
Author:
ryan
Message:

Add cap checks around getting started links. Props Mark J. fixes #3074

File:
1 edited

Legend:

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

    r4097 r4130  
    119119
    120120<ul>
    121 <li><a href="post-new.php"><?php _e('Write a post'); ?></a></li>
    122 <li><a href="profile.php"><?php _e('Update your profile or change your password'); ?></a></li>
    123 <li><a href="link-add.php"><?php _e('Add a bookmark to your blogroll'); ?></a></li>
    124 <li><a href="themes.php"><?php _e('Change your site&#8217;s look or theme'); ?></a></li>
     121<?php if ( current_user_can('edit_posts') ) : ?>
     122    <li><a href="post-new.php"><?php _e('Write a post'); ?></a></li>
     123<?php endif; ?>
     124    <li><a href="profile.php"><?php _e('Update your profile or change your password'); ?></a></li>
     125<?php if ( current_user_can('manage_links') ) : ?>
     126    <li><a href="link-add.php"><?php _e('Add a bookmark to your blogroll'); ?></a></li>
     127<?php endif; ?>
     128<?php if ( current_user_can('switch_themes') ) : ?>
     129    <li><a href="themes.php"><?php _e('Change your site&#8217;s look or theme'); ?></a></li>
     130<?php endif; ?>
    125131</ul>
    126132
Note: See TracChangeset for help on using the changeset viewer.