Remove the conditional registration of the AMP panel in favor of using an 'active_callback' for it in the form of is_amp_endpoint().
Remove the conditional registration of the AMP panel in favor of using an 'active_callback' for it in the form of is_amp_endpoint().

ampproject/amp-toolbox-php,ampproject/amp-toolbox-php