Make WordPress Core

Ticket #26495: 26495.2.diff

File 26495.2.diff, 939 bytes (added by nacin, 11 years ago)

Fix inline docs typo

  • dashboard.php

     
    184184        <div class="main">
    185185        <ul>
    186186        <?php
    187         do_action( 'rightnow_list_start' );
    188187        // Posts and Pages
    189188        foreach ( array( 'post', 'page' ) as $post_type ) {
    190189                $num_posts = wp_count_posts( $post_type );
     
    213212                        <?php
    214213                }
    215214        }
    216         do_action( 'rightnow_list_end' );
     215
     216        /**
     217         * Include additional elements in the 'At a Glance' dashboard widget.
     218         * This widget was previously 'Right Now'.
     219         *
     220         * @since 3.8.0
     221         * @param array $items Array of items.
     222         */
     223        $elements = apply_filters( 'dashboard_glance_items', array() );
     224        if ( $elements ) {
     225                echo '<li>' . implode( "</li>\n<li>" . $elements ) . "</li>\n";
     226        }
     227
    217228        ?>
    218229        </ul>
    219230        <p><?php printf( __( 'WordPress %1$s running %2$s theme.' ), get_bloginfo( 'version', 'display' ), $theme_name ); ?></p>