Make WordPress Core


Ignore:
Timestamp:
06/26/2014 12:52:25 AM (10 years ago)
Author:
wonderboymusic
Message:

get_blog_details()->post_count should update on more actions than just publish_post.

Adds unit test.

Props 5um17, midxcat, strangerstudios.
Fixes #27952.

File:
1 edited

Legend:

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

    r28551 r28835  
    17621762 * to avoid extraneous COUNTs when a blog's details are fetched
    17631763 * with get_blog_details(). This function is called when posts
    1764  * are published to make sure the count stays current.
     1764 * are published or unpublished to make sure the count stays current.
    17651765 *
    17661766 * @since MU
Note: See TracChangeset for help on using the changeset viewer.