Changeset 26999
- Timestamp:
- 01/22/2014 04:51:07 PM (11 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/css/wp-admin.css
r26963 r26999 2966 2966 /* Dashboard right now - Colors */ 2967 2967 2968 #dashboard_right_now li a:before { 2968 #dashboard_right_now li a:before, 2969 #dashboard_right_now li span:before { 2969 2970 color: #888; 2970 2971 } … … 2985 2986 } 2986 2987 2987 #dashboard_right_now .warning a:before { 2988 #dashboard_right_now .warning a:before, 2989 #dashboard_right_now .warning span:before { 2988 2990 color: #d54e21; 2989 2991 } 2990 2992 2991 2993 /* Dashboard right now - Icons */ 2992 #dashboard_right_now li a:before { 2994 #dashboard_right_now li a:before, 2995 #dashboard_right_now li span:before { 2993 2996 content: '\f159'; 2994 2997 font: normal 20px/1 'dashicons'; … … 3005 3008 } 3006 3009 3007 #dashboard_right_now .page-count a:before { 3010 #dashboard_right_now .page-count a:before, 3011 #dashboard_right_now .page-count span:before { 3008 3012 content: '\f105'; 3009 3013 } 3010 3014 3011 #dashboard_right_now .post-count a:before { 3015 #dashboard_right_now .post-count a:before, 3016 #dashboard_right_now .post-count span:before { 3012 3017 content: '\f109'; 3013 3018 } -
trunk/src/wp-admin/includes/dashboard.php
r26832 r26999 195 195 } 196 196 $text = sprintf( $text, number_format_i18n( $num_posts->publish ) ); 197 printf( '<li class="%1$s-count"><a href="edit.php?post_type=%1$s">%2$s</a></li>', $post_type, $text ); 197 $post_type_object = get_post_type_object( $post_type ); 198 if ( $post_type_object && current_user_can( $post_type_object->cap->edit_posts ) ) { 199 printf( '<li class="%1$s-count"><a href="edit.php?post_type=%1$s">%2$s</a></li>', $post_type, $text ); 200 } else { 201 printf( '<li class="%1$s-count"><span>%2$s</span></li>', $post_type, $text ); 202 } 203 198 204 } 199 205 }
Note: See TracChangeset
for help on using the changeset viewer.