mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 12:44:31 +00:00
PHPDoc and i18n fixes for dashboard widgets.
props dimadin for initial patch. see #25824. git-svn-id: https://develop.svn.wordpress.org/trunk@26241 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -99,10 +99,10 @@ case 'post-quickdraft-save':
|
||||
$nonce = $_REQUEST['_wpnonce'];
|
||||
$error_msg = false;
|
||||
if ( ! wp_verify_nonce( $nonce, 'add-post' ) )
|
||||
$error_msg = 'Unable to submit this form, please refresh and try again.';
|
||||
$error_msg = __( 'Unable to submit this form, please refresh and try again.' );
|
||||
|
||||
if ( ! current_user_can( 'edit_posts' ) )
|
||||
$error_msg = "Oops, you don't have access to add new drafts.";
|
||||
$error_msg = __( 'Oops, you don’t have access to add new drafts.' );
|
||||
|
||||
if ( $error_msg )
|
||||
return wp_dashboard_quick_press( $error_msg );
|
||||
|
||||
Reference in New Issue
Block a user