Make WordPress Core


Ignore:
Timestamp:
11/17/2013 03:20:38 AM (12 years ago)
Author:
SergeyBiryukov
Message:

PHPDoc and i18n fixes for dashboard widgets.

props dimadin for initial patch.
see #25824.

File:
1 edited

Legend:

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

    r26221 r26241  
    281281
    282282/**
    283  * The Quick Draft widget display and creation of drafts
    284  *
    285  *
     283 * The Quick Draft widget display and creation of drafts.
    286284 *
    287285 * @since 3.8.0
    288286 *
    289  */
    290 function wp_dashboard_quick_press( $error_msg=false ) {
     287 * @param string $error_msg Error message.
     288 */
     289function wp_dashboard_quick_press( $error_msg = false ) {
    291290    global $post_ID;
    292291
     
    314313    <form name="post" action="<?php echo esc_url( admin_url( 'post.php' ) ); ?>" method="post" id="quick-press" class="initial-form">
    315314
    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>
    318317        <?php endif; ?>
    319318
    320319        <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&#8217;s on your mind?' ); ?></label>
    322321            <input type="text" name="post_title" id="title" autocomplete="off" />
    323322        </div>
     
    467466
    468467/**
    469  * callback function for `Activity` widget
    470  *
    471  *
     468 * Callback function for Activity widget.
    472469 *
    473470 * @since 3.8.0
    474  *
    475471 */
    476472function wp_dashboard_activity() {
     
    514510
    515511/**
    516  * Generates `Publishing Soon` and `Recently Published` sections
    517  *
    518  *
     512 * Generates Publishing Soon and Recently Published sections.
    519513 *
    520514 * @since 3.8.0
    521515 *
     516 * @param array $args
    522517 */
    523518function dashboard_show_published_posts( $args ) {
     
    574569
    575570/**
    576  * Show `Comments` section
    577  *
    578  *
     571 * Show Comments section.
    579572 *
    580573 * @since 3.8.0
    581574 *
     575 * @param int $total_items
    582576 */
    583577function dashboard_comments( $total_items = 5 ) {
     
    632626
    633627/**
    634  * return relative date for given timestamp
    635  *
    636  *
     628 * Return relative date for given timestamp.
    637629 *
    638630 * @since 3.8.0
    639631 *
     632 * @param int $time Unix $timestamp.
    640633 */
    641634function dashboard_relative_date( $time ) {
Note: See TracChangeset for help on using the changeset viewer.