Make WordPress Core

Ticket #24803: 24803.3.diff

File 24803.3.diff, 395 bytes (added by johnpbloch, 12 years ago)

Updated patch with feedback from Aaron Campbell

  • wp-includes/post.php

     
    20422042function wp_count_posts( $type = 'post', $perm = '' ) {
    20432043        global $wpdb;
    20442044
     2045        if ( ! post_type_exists( $type ) )
     2046                return new stdClass;
     2047
    20452048        $user = wp_get_current_user();
    20462049
    20472050        $cache_key = $type;