Changeset 26241
- Timestamp:
- 11/17/2013 03:20:38 AM (12 years ago)
- Location:
- trunk/src/wp-admin
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/dashboard.php
r26221 r26241 281 281 282 282 /** 283 * The Quick Draft widget display and creation of drafts 284 * 285 * 283 * The Quick Draft widget display and creation of drafts. 286 284 * 287 285 * @since 3.8.0 288 286 * 289 */ 290 function wp_dashboard_quick_press( $error_msg=false ) { 287 * @param string $error_msg Error message. 288 */ 289 function wp_dashboard_quick_press( $error_msg = false ) { 291 290 global $post_ID; 292 291 … … 314 313 <form name="post" action="<?php echo esc_url( admin_url( 'post.php' ) ); ?>" method="post" id="quick-press" class="initial-form"> 315 314 316 <?php if ( $error_msg) : ?>317 <div class="error"><?php _e( $error_msg ); ?></div>315 <?php if ( $error_msg ) : ?> 316 <div class="error"><?php echo $error_msg; ?></div> 318 317 <?php endif; ?> 319 318 320 319 <div class="input-text-wrap" id="title-wrap"> 321 <label class="screen-reader-text prompt" for="title" id="title-prompt-text"><?php _e( "What's on your mind?"); ?></label>320 <label class="screen-reader-text prompt" for="title" id="title-prompt-text"><?php _e( 'What’s on your mind?' ); ?></label> 322 321 <input type="text" name="post_title" id="title" autocomplete="off" /> 323 322 </div> … … 467 466 468 467 /** 469 * callback function for `Activity` widget 470 * 471 * 468 * Callback function for Activity widget. 472 469 * 473 470 * @since 3.8.0 474 *475 471 */ 476 472 function wp_dashboard_activity() { … … 514 510 515 511 /** 516 * Generates `Publishing Soon` and `Recently Published` sections 517 * 518 * 512 * Generates Publishing Soon and Recently Published sections. 519 513 * 520 514 * @since 3.8.0 521 515 * 516 * @param array $args 522 517 */ 523 518 function dashboard_show_published_posts( $args ) { … … 574 569 575 570 /** 576 * Show `Comments` section 577 * 578 * 571 * Show Comments section. 579 572 * 580 573 * @since 3.8.0 581 574 * 575 * @param int $total_items 582 576 */ 583 577 function dashboard_comments( $total_items = 5 ) { … … 632 626 633 627 /** 634 * return relative date for given timestamp 635 * 636 * 628 * Return relative date for given timestamp. 637 629 * 638 630 * @since 3.8.0 639 631 * 632 * @param int $time Unix $timestamp. 640 633 */ 641 634 function dashboard_relative_date( $time ) { -
trunk/src/wp-admin/post.php
r26231 r26241 100 100 $error_msg = false; 101 101 if ( ! wp_verify_nonce( $nonce, 'add-post' ) ) 102 $error_msg = 'Unable to submit this form, please refresh and try again.';102 $error_msg = __( 'Unable to submit this form, please refresh and try again.' ); 103 103 104 104 if ( ! current_user_can( 'edit_posts' ) ) 105 $error_msg = "Oops, you don't have access to add new drafts.";105 $error_msg = __( 'Oops, you don’t have access to add new drafts.' ); 106 106 107 107 if ( $error_msg )
Note: See TracChangeset
for help on using the changeset viewer.