WordPress.org

Make WordPress Core

Ticket #33714: 33714.2.diff

File 33714.2.diff, 617 bytes (added by wonderboymusic, 6 years ago)
  • src/wp-admin/includes/dashboard.php

     
    233233        <div class="main">
    234234        <ul>
    235235        <?php
     236        $post_types = apply_filters( 'dashboard_right_now_post_types', array( 'post', 'page' ) );
     237
    236238        // Posts and Pages
    237         foreach ( array( 'post', 'page' ) as $post_type ) {
     239        foreach ( $post_types as $post_type ) {
    238240                $num_posts = wp_count_posts( $post_type );
    239241                if ( $num_posts && $num_posts->publish ) {
    240242                        if ( 'post' == $post_type ) {