WordPress.org

Make WordPress Core

Changeset 9630


Ignore:
Timestamp:
11/12/2008 05:11:12 AM (10 years ago)
Author:
ryan
Message:

Show Submit for Review if user can't publish. fixes #8108

File:
1 edited

Legend:

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

    r9628 r9630  
    4949
    5050    // QuickPress Widget
    51     if ( current_user_can('publish_posts') )
     51    if ( current_user_can('edit_posts') )
    5252        wp_add_dashboard_widget( 'dashboard_quick_press', __( 'QuickPress' ), 'wp_dashboard_quick_press' );
    5353
     
    333333            <input type="submit" name="save" id="save-post" class="button" value="<?php _e('Save Draft'); ?>" />
    334334            <input type="reset" value="<?php _e( 'Cancel' ); ?>" class="cancel" />
     335            <?php if ( current_user_can('publish_posts') ) { ?>
    335336            <input type="submit" name="publish" id="publish" accesskey="p" class="button button-primary" value="<?php _e('Publish'); ?>" />
     337            <?php } else { ?>
     338            <input type="submit" name="publish" id="publish" accesskey="p" class="button button-primary" value="<?php _e('Submit for Review'); ?>" />
     339            <?php } ?>
    336340            <br class="clear" />
    337341        </p>
Note: See TracChangeset for help on using the changeset viewer.