Merge pull request #648 from nickdaugherty/check-autosaves

Check DOING_AUTOSAVE before flushing transients.

Fixes #646.
This commit is contained in:
Konstantin Obenland 2014-11-14 00:33:57 -05:00
commit b550416497
1 changed files with 3 additions and 0 deletions

View File

@ -250,6 +250,9 @@ function _s_categorized_blog() {
* Flush out the transients used in _s_categorized_blog. * Flush out the transients used in _s_categorized_blog.
*/ */
function _s_category_transient_flusher() { function _s_category_transient_flusher() {
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
return;
}
// Like, beat it. Dig? // Like, beat it. Dig?
delete_transient( '_s_categories' ); delete_transient( '_s_categories' );
} }