Ticket #26495: 26495.2.diff
File 26495.2.diff, 939 bytes (added by , 11 years ago) |
---|
-
dashboard.php
184 184 <div class="main"> 185 185 <ul> 186 186 <?php 187 do_action( 'rightnow_list_start' );188 187 // Posts and Pages 189 188 foreach ( array( 'post', 'page' ) as $post_type ) { 190 189 $num_posts = wp_count_posts( $post_type ); … … 213 212 <?php 214 213 } 215 214 } 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 217 228 ?> 218 229 </ul> 219 230 <p><?php printf( __( 'WordPress %1$s running %2$s theme.' ), get_bloginfo( 'version', 'display' ), $theme_name ); ?></p>