forked from mirror/_s
Merge pull request #648 from nickdaugherty/check-autosaves
Check DOING_AUTOSAVE before flushing transients. Fixes #646.
This commit is contained in:
commit
b550416497
|
@ -250,6 +250,9 @@ function _s_categorized_blog() {
|
|||
* Flush out the transients used in _s_categorized_blog.
|
||||
*/
|
||||
function _s_category_transient_flusher() {
|
||||
if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
|
||||
return;
|
||||
}
|
||||
// Like, beat it. Dig?
|
||||
delete_transient( '_s_categories' );
|
||||
}
|
||||
|
|
Reference in New Issue