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

git-svn-id: http://svn.automattic.com/wordpress/trunk@17797 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2011-05-04 19:18:20 +00:00
parent 69dfdd4a36
commit 26e2d8b986
4 changed files with 11 additions and 11 deletions

File diff suppressed because one or more lines are too long

View File

@ -203,6 +203,10 @@ div.postbox div.inside {
font-size: 10px;
}
#dashboard_recent_comments .subsubsub {
float: none;
}
#the-comment-list {
position: relative;
}

View File

@ -384,22 +384,18 @@ function wp_dashboard_right_now() {
$num = number_format_i18n( $num_widgets );
$switch_themes = $ct->title;
if ( current_user_can( 'switch_themes') ) {
echo '<a href="themes.php" class="button rbutton">' . __('Change Theme') . '</a>';
if ( current_user_can( 'switch_themes') )
$switch_themes = '<a href="themes.php">' . $switch_themes . '</a>';
}
if ( current_user_can( 'edit_theme_options' ) ) {
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);
} else {
printf(_n('Theme <span class="b">%1$s</span> with <span class="b">%2$s Widget</span>', 'Theme <span class="b">%1$s</span> with <span class="b">%2$s Widgets</span>', $num_widgets), $switch_themes, $num);
}
} else {
if ( current_user_can( 'switch_themes' ) ) {
echo '<a href="themes.php" class="button rbutton">' . __('Change Theme') . '</a>';
if ( current_user_can( 'switch_themes' ) )
printf( __('Theme <span class="b"><a href="themes.php">%1$s</a></span>'), $ct->title );
} else {
else
printf( __('Theme <span class="b">%1$s</span>'), $ct->title );
}
}
echo '</p>';
@ -577,7 +573,7 @@ function wp_dashboard_recent_drafts( $drafts = false ) {
<ul>
<li><?php echo join( "</li>\n<li>", $list ); ?></li>
</ul>
<p class="textright"><a href="edit.php?post_status=draft" class="button"><?php _e('View all'); ?></a></p>
<p class="textright"><a href="edit.php?post_status=draft" ><?php _e('View all'); ?></a></p>
<?php
} else {
_e('There are no drafts at the moment');
@ -630,7 +626,7 @@ function wp_dashboard_recent_comments() {
<?php
if ( current_user_can('edit_posts') ) { ?>
<p class="textright"><a href="edit-comments.php" class="button"><?php _e('View all'); ?></a></p>
<?php _get_list_table('WP_Comments_List_Table')->views(); ?>
<?php }
wp_comment_reply( -1, false, 'dashboard', false );

View File

@ -504,7 +504,7 @@ function wp_default_styles( &$styles ) {
$styles->add( 'global', "/wp-admin/css/global$suffix.css", array(), '20110424' );
$styles->add( 'media', "/wp-admin/css/media$suffix.css", array(), '20110121' );
$styles->add( 'widgets', "/wp-admin/css/widgets$suffix.css", array(), '20110104' );
$styles->add( 'dashboard', "/wp-admin/css/dashboard$suffix.css", array(), '20110428' );
$styles->add( 'dashboard', "/wp-admin/css/dashboard$suffix.css", array(), '20110504' );
$styles->add( 'install', "/wp-admin/css/install$suffix.css", array(), '20110121' ); // Readme as well
$styles->add( 'theme-editor', "/wp-admin/css/theme-editor$suffix.css", array(), '20101203' );
$styles->add( 'press-this', "/wp-admin/css/press-this$suffix.css", array(), '20110121' );