Make WordPress Core


Ignore:
Timestamp:
09/23/2013 07:07:08 PM (12 years ago)
Author:
nacin
Message:

In wp_count_posts(), rename 'count_posts' hook to 'wp_count_posts', for clarity. see #16603.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/post.php

    r25554 r25578  
    818818        $count1 = wp_count_posts( $post_type, 'readable' );
    819819        $this->assertEquals( 10, $count1->publish );
    820         add_filter( 'count_posts', array( $this, 'filter_wp_count_posts' ) );
     820        add_filter( 'wp_count_posts', array( $this, 'filter_wp_count_posts' ) );
    821821
    822822        $count2 = wp_count_posts( $post_type, 'readable' );
    823823        $this->assertEquals( 7, $count2->publish );
    824824
    825         remove_filter( 'count_posts', array( $this, 'filter_wp_count_posts' ) );
     825        remove_filter( 'wp_count_posts', array( $this, 'filter_wp_count_posts' ) );
    826826    }
    827827
Note: See TracChangeset for help on using the changeset viewer.