Skip to content

Commit 5422198

Browse files
committed
Add TODO annotations to remove manual AMP dev mode fix once AMP plugin has it (for a while).
1 parent 7e3ddbf commit 5422198

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

includes/Core/Admin_Bar/Admin_Bar.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ function( $wp_admin_bar ) {
8282
99
8383
);
8484

85+
// TODO: This can be removed at some point, see https://github.com/ampproject/amp-wp/pull/4001.
8586
add_filter( 'amp_dev_mode_element_xpaths', array( $this, 'add_amp_dev_mode' ) );
8687

8788
$admin_bar_callback = function() {

includes/Core/Assets/Assets.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,7 @@ private function run_before_print_callbacks( WP_Dependencies $dependencies, arra
732732
if ( isset( $this->assets[ $handle ] ) ) {
733733
$this->assets[ $handle ]->before_print();
734734

735+
// TODO: This can be removed at some point, see https://github.com/ampproject/amp-wp/pull/4001.
735736
if ( $is_amp && $this->assets[ $handle ] instanceof Script ) {
736737
$this->add_extra_script_amp_dev_mode( $handle );
737738
}

0 commit comments

Comments
 (0)