Ticket #25824: 25824.7.diff
File 25824.7.diff, 6.3 KB (added by , 10 years ago) |
---|
-
wp-includes/default-widgets.php
904 904 if ( $link == '' ) { 905 905 echo "<li>$title{$date}{$summary}{$author}</li>"; 906 906 } 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>"; 908 908 } 909 909 } 910 910 echo '</ul>'; -
wp-admin/post.php
105 105 $error_msg = "Oops, you don't have access to add new drafts."; 106 106 107 107 if ( $error_msg ) 108 return wp_dashboard_quick_ draft( $error_msg );108 return wp_dashboard_quick_press( $error_msg ); 109 109 110 110 $post = get_post( $_REQUEST['post_ID'] ); 111 111 check_admin_referer( 'add-' . $post->post_type ); 112 112 edit_post(); 113 113 // output the quickdraft dashboard widget 114 114 require_once(ABSPATH . 'wp-admin/includes/dashboard.php'); 115 wp_dashboard_quick_ draft();115 wp_dashboard_quick_press(); 116 116 exit; 117 117 break; 118 118 -
wp-admin/js/dashboard.js
62 62 quickPressLoad = function() { 63 63 var act = $('#quickpost-action'), t; 64 64 t = $('#quick-press').submit( function() { 65 $('#dashboard_quick_ draft#publishing-action .spinner').show();65 $('#dashboard_quick_press #publishing-action .spinner').show(); 66 66 $('#quick-press .submit input[type="submit"], #quick-press .submit input[type="reset"]').prop('disabled', true); 67 67 68 68 $.post( t.attr( 'action' ), t.serializeArray(), function( data ) { 69 69 // Replace the form, and prepend the published post. 70 $('#dashboard_quick_ draft.inside').html( data );70 $('#dashboard_quick_press .inside').html( data ); 71 71 $('#quick-press').removeClass('initial-form'); 72 72 quickPressLoad(); 73 73 highlightLatestPost(); … … 75 75 }); 76 76 77 77 function highlightLatestPost () { 78 var latestPost = $(' #draft-listli').first();78 var latestPost = $('.drafts ul li').first(); 79 79 latestPost.css('background', '#fffbe5'); 80 80 setTimeout(function () { 81 81 latestPost.css('background', 'none'); -
wp-admin/css/wp-admin.css
2578 2578 } 2579 2579 2580 2580 .postbox .inside { 2581 margin: 1 2px 0;2581 margin: 11px 0; 2582 2582 position: relative; 2583 2583 } 2584 2584 … … 2653 2653 position: relative; 2654 2654 overflow: auto; 2655 2655 margin: 16px 0; 2656 padding: 23px 10px 12px;2656 padding: 23px 10px 0; 2657 2657 font-size: 13px; 2658 2658 line-height: 2.1em; 2659 2659 } … … 2683 2683 position: absolute; 2684 2684 top: 5px; 2685 2685 right: 10px; 2686 padding: 8px3px;2686 padding: 20px 15px 0 3px; 2687 2687 font-size: 13px; 2688 2688 text-decoration: none; 2689 2689 line-height: 1; … … 2814 2814 2815 2815 /* Dashboard WordPress news */ 2816 2816 2817 #dashboard_ rss.inside {2817 #dashboard_primary .inside { 2818 2818 margin: 0; 2819 2819 padding: 0; 2820 2820 } 2821 2821 2822 #dashboard_ rss.widget-loading,2823 #dashboard_ rss.dashboard-widget-control-form {2822 #dashboard_primary .widget-loading, 2823 #dashboard_primary .dashboard-widget-control-form { 2824 2824 padding: 12px 12px 0; 2825 2825 } 2826 2826 … … 2841 2841 margin-top: 4px; 2842 2842 } 2843 2843 2844 .rss-widget {2844 #dashboard_primary .rss-widget { 2845 2845 border-bottom: 1px solid #eee; 2846 2846 font-size: 13px; 2847 padding: 8px 12px 1 2px;2847 padding: 8px 12px 10px; 2848 2848 } 2849 2849 2850 .rss-widget:last-child {2850 #dashboard_primary .rss-widget:last-child { 2851 2851 border-bottom: none; 2852 padding-bottom: 0;2852 padding-bottom: 8px; 2853 2853 } 2854 2854 2855 .rss-widget a {2855 #dashboard_primary .rss-widget a { 2856 2856 font-weight: normal; 2857 2857 } 2858 2858 2859 .rss-widget span,2860 .rss-widget span.rss-date {2859 #dashboard_primary .rss-widget span, 2860 #dashboard_primary .rss-widget span.rss-date { 2861 2861 color: #bbb; 2862 2862 } 2863 2863 2864 .rss-widget span.rss-date {2864 #dashboard_primary .rss-widget span.rss-date { 2865 2865 margin-left: 12px; 2866 2866 } 2867 2867 2868 .rss-widget ul li {2868 #dashboard_primary .rss-widget ul li { 2869 2869 margin-bottom: 8px; 2870 2870 } 2871 2871 … … 2889 2889 } 2890 2890 2891 2891 #dash-right-now .main { 2892 padding: 0 12px ;2892 padding: 0 12px 11px; 2893 2893 } 2894 2894 2895 2895 #dash-right-now .main p { … … 2909 2909 #dash-right-now .sub { 2910 2910 color: #bfbbbb; 2911 2911 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; 2915 2914 } 2916 2915 2917 2916 #dash-right-now .sub h4 { … … 2969 2968 2970 2969 /* Dashboard Quick Draft */ 2971 2970 2971 #dashboard_quick_press .inside { 2972 margin: 0; 2973 padding: 0; 2974 } 2975 2972 2976 #dashboard_quick_press div.updated { 2973 2977 margin-bottom: 10px; 2974 2978 border: 1px solid #eee; … … 2976 2980 } 2977 2981 2978 2982 #dashboard_quick_press form { 2979 padding: 0 12px 1px 12px;2980 2983 overflow: hidden; 2984 margin: 12px 12px 0; 2981 2985 } 2982 2986 2983 2987 #dashboard_quick_press .drafts, 2984 2988 #dashboard_quick_press .easy-blogging { 2985 padding: 8px 12px0;2989 padding: 10px 0 0; 2986 2990 } 2987 2991 2988 #dashboard-widgets .postbox .inside {2989 margin: 10px 0;2990 padding: 0;2991 }2992 2993 2992 /* Dashboard Quick Draft - Form styling */ 2994 2993 2995 2994 input#save-post { … … 3080 3079 } 3081 3080 3082 3081 #dashboard_quick_press .drafts h4 { 3083 margin: 0 0 8px 0;3082 margin: 0 12px 8px; 3084 3083 font-weight: normal; 3085 3084 } 3086 3085 3087 3086 #dashboard_quick_press .drafts .view-all { 3088 3087 float: right; 3089 margin -top:0;3088 margin: 0 12px 0 0; 3090 3089 } 3091 3090 3092 #dashboard_ rssa.rsswidget {3091 #dashboard_primary a.rsswidget { 3093 3092 font-weight: normal; 3094 3093 } 3095 3094 3096 3095 #dashboard_quick_press .drafts ul { 3097 margin: 0 ;3096 margin: 0 12px; 3098 3097 } 3099 3098 3100 3099 #dashboard_quick_press .drafts li { … … 3188 3187 float: none; 3189 3188 border-top: 1px solid #eeeeee; 3190 3189 margin-top: 0; 3191 padding: 8px 12px 0 12px;3190 padding: 8px 12px 4px; 3192 3191 } 3193 3192 3194 3193 #future-posts .show-more, 3195 3194 #published-posts .show-more { 3196 3195 float: right; 3196 margin-right: 12px; 3197 3197 } 3198 3198 3199 3199 #future-posts ul, … … 3219 3219 .activity-block { 3220 3220 border-bottom: 1px solid #eee; 3221 3221 overflow: hidden; 3222 padding: 8px 0 0;3222 padding: 8px 0 4px; 3223 3223 } 3224 3224 3225 3225 .activity-block:last-child { … … 7832 7832 #poststuff h3, 7833 7833 .metabox-holder h3 { 7834 7834 font-size: 14px; 7835 padding: 7px 12px;7835 padding: 8px 12px; 7836 7836 margin: 0; 7837 7837 line-height: 1.4; 7838 7838 } … … 8276 8276 } 8277 8277 8278 8278 #title-wrap #title-prompt-text { 8279 font-size: 1 em;8279 font-size: 1.1em; 8280 8280 padding: 5px 8px; 8281 8281 } 8282 8282