Make WordPress Core


Ignore:
Timestamp:
03/28/2014 05:42:49 AM (11 years ago)
Author:
DrewAPicture
Message:

Fix the wp_count_attachments() PHPDoc to reflect that it returns an object, not array.

See #25412.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r27767 r27807  
    21622162 *
    21632163 * @param string|array $mime_type Optional. Array or comma-separated list of MIME patterns.
    2164  * @return array Number of posts for each mime type.
     2164 * @return object An object containing the attachment counts by mime type.
    21652165 */
    21662166function wp_count_attachments( $mime_type = '' ) {
Note: See TracChangeset for help on using the changeset viewer.