Show Submit for Review if user can't publish. fixes #8108
git-svn-id: https://develop.svn.wordpress.org/trunk@9630 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
d884ee49f8
commit
478126eca9
@ -48,7 +48,7 @@ function wp_dashboard_setup() {
|
||||
wp_add_dashboard_widget( 'dashboard_plugins', __( 'Plugins' ), 'wp_dashboard_plugins' );
|
||||
|
||||
// QuickPress Widget
|
||||
if ( current_user_can('publish_posts') )
|
||||
if ( current_user_can('edit_posts') )
|
||||
wp_add_dashboard_widget( 'dashboard_quick_press', __( 'QuickPress' ), 'wp_dashboard_quick_press' );
|
||||
|
||||
// Recent Drafts
|
||||
@ -332,7 +332,11 @@ function wp_dashboard_quick_press() {
|
||||
<?php wp_nonce_field('add-post'); ?>
|
||||
<input type="submit" name="save" id="save-post" class="button" value="<?php _e('Save Draft'); ?>" />
|
||||
<input type="reset" value="<?php _e( 'Cancel' ); ?>" class="cancel" />
|
||||
<?php if ( current_user_can('publish_posts') ) { ?>
|
||||
<input type="submit" name="publish" id="publish" accesskey="p" class="button button-primary" value="<?php _e('Publish'); ?>" />
|
||||
<?php } else { ?>
|
||||
<input type="submit" name="publish" id="publish" accesskey="p" class="button button-primary" value="<?php _e('Submit for Review'); ?>" />
|
||||
<?php } ?>
|
||||
<br class="clear" />
|
||||
</p>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user