markjaquith / WP-TLC-Transients

GNU General Public License v2.0
341 stars 37 forks source link

Hook TLC_Transient_Update_Server::init at a higher priority. #15

Closed cfg closed 11 years ago

cfg commented 11 years ago

Helps ensure that custom post types and taxonomies have a chance to be registered. Props to @danielbachhuber for discovering this.

Co-Authors-Plus users should be aware that that corrupt/inconsistent cached authors are likely to occur without this change.

Rarst commented 11 years ago

create_initial_post_types() is hooked to init with priority 0 (not to mention it's second time it runs, first being earlier in wp-settings.php). Default priority of 10 should be well after that.

Could you elaborate on issue this solves?

markjaquith commented 11 years ago

I have no issue with that. Makes sense that you might want to wait until other things get set up on init.