Skip to content

Commit

Permalink
Update todo for how a condition can be updated
Browse files Browse the repository at this point in the history
  • Loading branch information
westonruter committed Jan 21, 2021
1 parent 0017c8b commit ac968be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PluginSuppression.php
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public function initialize() {
// could be done early for Transitional mode as well since a query parameter is also used for frontend requests
// but there is no similar need to suppress the registration of Customizer controls in Transitional mode since
// there is no separate Customizer for AMP in Transitional mode (or legacy Reader mode).
// @todo This could rather check if ! amp_is_canonical().
// @todo This check could be replaced with ( ! amp_is_canonical() && $this->paired_routing->has_endpoint() ).
if ( $this->is_reader_theme_request() ) {
$this->suppress_plugins();
} else {
Expand Down

0 comments on commit ac968be

Please sign in to comment.