WordPress.org

Make WordPress Core


Ignore:
Timestamp:
05/04/2011 07:18:20 PM (7 years ago)
Author:
ryan
Message:

Change View All Buttons into plain links. Show full set of status links in recent comments box. Drop Change Theme button.Props ryanimel. fixes #17282

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r17782 r17797  
    385385
    386386        $switch_themes = $ct->title;
    387         if ( current_user_can( 'switch_themes') ) {
    388             echo '<a href="themes.php" class="button rbutton">' . __('Change Theme') . '</a>';
     387        if ( current_user_can( 'switch_themes') )
    389388            $switch_themes = '<a href="themes.php">' . $switch_themes . '</a>';
    390         }
    391389        if ( current_user_can( 'edit_theme_options' ) ) {
    392390            printf(_n('Theme <span class="b">%1$s</span> with <span class="b"><a href="widgets.php">%2$s Widget</a></span>', 'Theme <span class="b">%1$s</span> with <span class="b"><a href="widgets.php">%2$s Widgets</a></span>', $num_widgets), $switch_themes, $num);
     
    395393        }
    396394    } else {
    397         if ( current_user_can( 'switch_themes' ) ) {
    398             echo '<a href="themes.php" class="button rbutton">' . __('Change Theme') . '</a>';
     395        if ( current_user_can( 'switch_themes' ) )
    399396            printf( __('Theme <span class="b"><a href="themes.php">%1$s</a></span>'), $ct->title );
    400         } else {
     397        else
    401398            printf( __('Theme <span class="b">%1$s</span>'), $ct->title );
    402         }
    403399    }
    404400    echo '</p>';
     
    578574        <li><?php echo join( "</li>\n<li>", $list ); ?></li>
    579575    </ul>
    580     <p class="textright"><a href="edit.php?post_status=draft" class="button"><?php _e('View all'); ?></a></p>
     576    <p class="textright"><a href="edit.php?post_status=draft" ><?php _e('View all'); ?></a></p>
    581577<?php
    582578    } else {
     
    631627<?php
    632628        if ( current_user_can('edit_posts') ) { ?>
    633             <p class="textright"><a href="edit-comments.php" class="button"><?php _e('View all'); ?></a></p>
     629            <?php _get_list_table('WP_Comments_List_Table')->views(); ?>
    634630<?php   }
    635631
Note: See TracChangeset for help on using the changeset viewer.