Jetpack: Featured Content broken on WP Nightlies

Created on 10 Oct 2016  路  4Comments  路  Source: Automattic/jetpack

Hi - Jetpack Featured Content is currently white screening when using Featured content.

Strangely there's no php errors - but I did a bit of debugging and the problem seems to be happening in the wp_loaded method in the Featured_content class. If I comment that out then everything works as before.

Theme Tools [Pri] BLOCKER [Type] Bug

All 4 comments

Done a bit more digging and it seems to be line 367 where you call get_term_by in the hide_featured_term method.

Looks like there's been quite a few taxonomy changes and it seems one of those is affecting this.

Am quite concerned about this bug. I just updated to 4.4 and the issue is still breaking my dev site entirely.

screen shot 2016-11-21 at 20 54 04

I foresee people updating WP before Jetpack and their sites being broken. I imagine it will need to be fixed for wordpress.com anyway before 4.7 is merged so hopefully it can be solved soon.

@BinaryMoon Thanks for the update. We'll address this in 4.4.2, our WordPress 4.7 compatibility release.

We just ran into this issue with WP 4.7 RC1. As far as I can tell, it's probably related to this change in core. get_term_by() now calls get_terms(), so when Featured_Content::hide_featured_term() calls get_term_by(), it creates an infinite loop.

Was this page helpful?
0 / 5 - 0 ratings