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:
Sergey Biryukov
2013-11-17 03:20:38 +00:00
parent 3035556d48
commit dfd8f30724
2 changed files with 15 additions and 22 deletions

View File

@@ -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 );