Make WordPress Core

Changeset 9916


Ignore:
Timestamp:
11/27/2008 05:20:05 AM (16 years ago)
Author:
azaozz
Message:

Change View All/Edit links on dashboard widgets, fixes #8365

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/css/dashboard.css

    r9864 r9916  
    7878#dashboard-widgets h3 a {
    7979    text-decoration: underline;
     80    float: right;
     81    position: relative;
     82    right: 5px;
     83    top: -12px;
    8084}
    8185
  • trunk/wp-admin/includes/dashboard.php

    r9905 r9916  
    3030    // Recent Comments Widget
    3131    $recent_comments_title = __( 'Recent Comments' );
    32     if ( current_user_can('edit_posts') )
    33         $recent_comments_title .= ' <a href="edit-comments.php" class="edit-box open-box">' . __('View all') . '</a>';
    3432    wp_add_dashboard_widget( 'dashboard_recent_comments', $recent_comments_title, 'wp_dashboard_recent_comments' );
    3533
     
    5755    // Recent Drafts
    5856    if ( current_user_can('edit_posts') )
    59         wp_add_dashboard_widget( 'dashboard_recent_drafts', __( 'Recent Drafts') . ' <a href="edit.php?post_status=draft" class="edit-box open-box">' . __('View all') . '</a>', 'wp_dashboard_recent_drafts' );
     57        wp_add_dashboard_widget( 'dashboard_recent_drafts', __('Recent Drafts'), 'wp_dashboard_recent_drafts' );
    6058
    6159    // Primary feed (Dev Blog) Widget
     
    123121        }
    124122        list($url) = explode( '#', add_query_arg( 'edit', $widget_id ), 2 );
    125         $widget_name .= ' <a href="' . clean_url( "$url#$widget_id" ) . '" class="edit-box open-box">' . __( 'Edit' ) . '</a>';
     123        $widget_name .= ' <a href="' . clean_url( "$url#$widget_id" ) . '" class="edit-box open-box">' . __( 'Configure' ) . '</a>';
    126124    }
    127125    $side_widgets = array('dashboard_quick_press', 'dashboard_recent_drafts', 'dashboard_primary', 'dashboard_secondary');
     
    386384        <li><?php echo join( "</li>\n<li>", $list ); ?></li>
    387385    </ul>
    388 
     386    <p class="textright"><a href="edit.php?post_status=draft" class="button"><?php _e('View all'); ?></a></p>
    389387<?php
    390388    } else {
     
    415413
    416414<?php
     415        if ( current_user_can('edit_posts') ) { ?>
     416            <p class="textright"><a href="edit-comments.php" class="button"><?php _e('View all'); ?></a></p>
     417<?php   }
     418       
    417419        wp_comment_reply( -1, false, 'dashboard', false );
    418420
Note: See TracChangeset for help on using the changeset viewer.