Make WordPress Core

Ticket #3074: links_to_get_started_CAPS.diff

File links_to_get_started_CAPS.diff, 1.5 KB (added by markjaquith, 20 years ago)

patch for /trunk/

  • wp-admin/index.php

     
    118118<p><?php _e('Use these links to get started:'); ?></p>
    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
    127133<p><?php _e("Below is the latest news from the official WordPress development blog, click on a title to read the full entry. If you need help with WordPress please see our <a href='http://codex.wordpress.org/'>great documentation</a> or if that doesn't help visit the <a href='http://wordpress.org/support/'>support forums</a>."); ?></p>