Make WordPress Core

Ticket #25824: 25824.7.diff

File 25824.7.diff, 6.3 KB (added by lessbloat, 10 years ago)
  • wp-includes/default-widgets.php

     
    904904                if ( $link == '' ) {
    905905                        echo "<li>$title{$date}{$summary}{$author}</li>";
    906906                } else {
    907                         echo "<li><div class='rss-title-row'><a class='rsswidget' href='$link' title='$desc'>$title</a>{$date}</div>{$summary}{$author}</li>";
     907                        echo "<li><a class='rsswidget' href='$link' title='$desc'>$title</a>{$date}{$summary}{$author}</li>";
    908908                }
    909909        }
    910910        echo '</ul>';
  • wp-admin/post.php

     
    105105                $error_msg = "Oops, you don't have access to add new drafts.";
    106106
    107107        if ( $error_msg )
    108                 return wp_dashboard_quick_draft( $error_msg );
     108                return wp_dashboard_quick_press( $error_msg );
    109109
    110110        $post = get_post( $_REQUEST['post_ID'] );
    111111        check_admin_referer( 'add-' . $post->post_type );
    112112        edit_post();
    113113        // output the quickdraft dashboard widget
    114114        require_once(ABSPATH . 'wp-admin/includes/dashboard.php');
    115         wp_dashboard_quick_draft();
     115        wp_dashboard_quick_press();
    116116        exit;
    117117        break;
    118118
  • wp-admin/js/dashboard.js

     
    6262        quickPressLoad = function() {
    6363                var act = $('#quickpost-action'), t;
    6464                t = $('#quick-press').submit( function() {
    65                         $('#dashboard_quick_draft #publishing-action .spinner').show();
     65                        $('#dashboard_quick_press #publishing-action .spinner').show();
    6666                        $('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop('disabled', true);
    6767
    6868                        $.post( t.attr( 'action' ), t.serializeArray(), function( data ) {
    6969                                // Replace the form, and prepend the published post.
    70                                 $('#dashboard_quick_draft .inside').html( data );
     70                                $('#dashboard_quick_press .inside').html( data );
    7171                                $('#quick-press').removeClass('initial-form');
    7272                                quickPressLoad();
    7373                                highlightLatestPost();
     
    7575                        });
    7676
    7777                        function highlightLatestPost () {
    78                                 var latestPost = $('#draft-list li').first();
     78                                var latestPost = $('.drafts ul li').first();
    7979                                latestPost.css('background', '#fffbe5');
    8080                                setTimeout(function () {
    8181                                        latestPost.css('background', 'none');
  • wp-admin/css/wp-admin.css

     
    25782578}
    25792579
    25802580.postbox .inside {
    2581         margin: 12px 0;
     2581        margin: 11px 0;
    25822582        position: relative;
    25832583}
    25842584
     
    26532653        position: relative;
    26542654        overflow: auto;
    26552655        margin: 16px 0;
    2656         padding: 23px 10px 12px;
     2656        padding: 23px 10px 0;
    26572657        font-size: 13px;
    26582658        line-height: 2.1em;
    26592659}
     
    26832683        position: absolute;
    26842684        top: 5px;
    26852685        right: 10px;
    2686         padding: 8px 3px;
     2686        padding: 20px 15px 0 3px;
    26872687        font-size: 13px;
    26882688        text-decoration: none;
    26892689        line-height: 1;
     
    28142814
    28152815/* Dashboard WordPress news */
    28162816
    2817 #dashboard_rss .inside {
     2817#dashboard_primary .inside {
    28182818        margin: 0;
    28192819        padding: 0;
    28202820}
    28212821
    2822 #dashboard_rss .widget-loading,
    2823 #dashboard_rss .dashboard-widget-control-form {
     2822#dashboard_primary .widget-loading,
     2823#dashboard_primary .dashboard-widget-control-form {
    28242824        padding: 12px 12px 0;
    28252825}
    28262826
     
    28412841        margin-top: 4px;
    28422842}
    28432843
    2844 .rss-widget {
     2844#dashboard_primary .rss-widget {
    28452845        border-bottom: 1px solid #eee;
    28462846        font-size: 13px;
    2847         padding: 8px 12px 12px;
     2847        padding: 8px 12px 10px;
    28482848}
    28492849
    2850 .rss-widget:last-child {
     2850#dashboard_primary .rss-widget:last-child {
    28512851        border-bottom: none;
    2852         padding-bottom: 0;
     2852        padding-bottom: 8px;
    28532853}
    28542854
    2855 .rss-widget a {
     2855#dashboard_primary .rss-widget a {
    28562856        font-weight: normal;
    28572857}
    28582858
    2859 .rss-widget span,
    2860 .rss-widget span.rss-date {
     2859#dashboard_primary .rss-widget span,
     2860#dashboard_primary .rss-widget span.rss-date {
    28612861        color: #bbb;
    28622862}
    28632863
    2864 .rss-widget span.rss-date {
     2864#dashboard_primary .rss-widget span.rss-date {
    28652865        margin-left: 12px;
    28662866}
    28672867
    2868 .rss-widget ul li {
     2868#dashboard_primary .rss-widget ul li {
    28692869        margin-bottom: 8px;
    28702870}
    28712871
     
    28892889}
    28902890
    28912891#dash-right-now .main {
    2892         padding: 0 12px;
     2892        padding: 0 12px 11px;
    28932893}
    28942894
    28952895#dash-right-now .main p {
     
    29092909#dash-right-now .sub {
    29102910        color: #bfbbbb;
    29112911        background: #f5f5f5;
    2912         border-top-color: #dedede;
    2913         padding: 12px 12px 6px 12px;
    2914         border-top: 1px solid;
     2912        border-top: 1px solid #eee;
     2913        padding: 10px 12px 6px 12px;
    29152914}
    29162915
    29172916#dash-right-now .sub h4 {
     
    29692968
    29702969/* Dashboard Quick Draft */
    29712970
     2971#dashboard_quick_press .inside {
     2972        margin: 0;
     2973        padding: 0;
     2974}
     2975
    29722976#dashboard_quick_press div.updated {
    29732977        margin-bottom: 10px;
    29742978        border: 1px solid #eee;
     
    29762980}
    29772981
    29782982#dashboard_quick_press form {
    2979         padding: 0 12px 1px 12px;
    29802983        overflow: hidden;
     2984        margin: 12px 12px 0;
    29812985}
    29822986
    29832987#dashboard_quick_press .drafts,
    29842988#dashboard_quick_press .easy-blogging {
    2985         padding: 8px 12px 0;
     2989        padding: 10px 0 0;
    29862990}
    29872991
    2988 #dashboard-widgets .postbox .inside {
    2989         margin: 10px 0;
    2990         padding: 0;
    2991 }
    2992 
    29932992/* Dashboard Quick Draft - Form styling */
    29942993
    29952994input#save-post {
     
    30803079}
    30813080
    30823081#dashboard_quick_press .drafts h4 {
    3083         margin: 0 0 8px 0;
     3082        margin: 0 12px 8px;
    30843083        font-weight: normal;
    30853084}
    30863085
    30873086#dashboard_quick_press .drafts .view-all {
    30883087        float: right;
    3089         margin-top: 0;
     3088        margin: 0 12px 0 0;
    30903089}
    30913090
    3092 #dashboard_rss a.rsswidget {
     3091#dashboard_primary a.rsswidget {
    30933092        font-weight: normal;
    30943093}
    30953094
    30963095#dashboard_quick_press .drafts ul {
    3097         margin: 0;
     3096        margin: 0 12px;
    30983097}
    30993098
    31003099#dashboard_quick_press .drafts li {
     
    31883187        float: none;
    31893188        border-top: 1px solid #eeeeee;
    31903189        margin-top: 0;
    3191         padding: 8px 12px 0 12px;
     3190        padding: 8px 12px 4px;
    31923191}
    31933192
    31943193#future-posts .show-more,
    31953194#published-posts .show-more {
    31963195        float: right;
     3196        margin-right: 12px;
    31973197}
    31983198
    31993199#future-posts ul,
     
    32193219.activity-block {
    32203220        border-bottom: 1px solid #eee;
    32213221        overflow: hidden;
    3222         padding: 8px 0 0;
     3222        padding: 8px 0 4px;
    32233223}
    32243224
    32253225.activity-block:last-child {
     
    78327832#poststuff h3,
    78337833.metabox-holder h3 {
    78347834        font-size: 14px;
    7835         padding: 7px 12px;
     7835        padding: 8px 12px;
    78367836        margin: 0;
    78377837        line-height: 1.4;
    78387838}
     
    82768276}
    82778277
    82788278#title-wrap #title-prompt-text {
    8279         font-size: 1em;
     8279        font-size: 1.1em;
    82808280        padding: 5px 8px;
    82818281}
    82828282