Ticket #8147: dashboard.diff
File dashboard.diff, 1.1 KB (added by , 15 years ago) |
---|
-
dashboard.
old new 289 289 $view = get_permalink( $_POST['post_ID'] ); 290 290 $edit = clean_url( get_edit_post_link( $_POST['post_ID'] ) ); 291 291 if ( 'post-quickpress-publish' == $_POST['action'] ) { 292 printf( '<div class="message"><p>' . __( 'Post Published. <a href="%s">View post</a> | <a href="%s">Edit post</a>' ) . '</p></div>', clean_url( $view ), $edit ); 292 if ( current_user_can('publish_posts') ) { 293 printf( '<div class="message"><p>' . __( 'Post Published. <a href="%s">View post</a> | <a href="%s">Edit post</a>' ) . '</p></div>', clean_url( $view ), $edit ); 294 } else { 295 printf( '<div class="message"><p>' . __( 'Post Submitted. <a href="%s">Preview post</a> | <a href="%s">Edit post</a>' ) . '</p></div>', clean_url( $view ), $edit ); 296 } 293 297 } else { 294 298 printf( '<div class="message"><p>' . __( 'Draft Saved. <a href="%s">Preview post</a> | <a href="%s">Edit post</a>' ) . '</p></div>', clean_url( add_query_arg( 'preview', 1, $view ) ), $edit ); 295 299 $drafts_query = new WP_Query( array(