WordPress.org

Make WordPress Core

Changeset 10154


Ignore:
Timestamp:
12/09/2008 08:38:44 PM (11 years ago)
Author:
ryan
Message:

Show 'Post submitted' insted of published when submitting for review from Quick Press. fixes #8547

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/dashboard.php

    r10153 r10154  
    293293        $edit = clean_url( get_edit_post_link( $_POST['post_ID'] ) );
    294294        if ( 'post-quickpress-publish' == $_POST['action'] ) {
    295             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 );
     295            if ( current_user_can('publish_posts') )
     296                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 );
     297            else
     298                printf( '<div class="message"><p>' . __( 'Post submitted. <a href="%s">Preview post</a> | <a href="%s">Edit post</a>' ) . '</p></div>', clean_url( add_query_arg( 'preview', 1, $view ) ), $edit );
    296299        } else {
    297300            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 );
Note: See TracChangeset for help on using the changeset viewer.