Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue #864: Only add AMP widget support if is_amp_endpoint().
I had tried to wrap the action hook in this conditional: add_action( 'init', 'amp_add_widget_support' ) But this produced this notice: is_amp_endpoint was called <strong>incorrectly</strong>. is_amp_endpoint() was called before the 'parse_query' hook was called.
- Loading branch information