diff --git a/source/wp-content/themes/wporg-showcase-2022/functions.php b/source/wp-content/themes/wporg-showcase-2022/functions.php index ff57bbbd..e9933073 100644 --- a/source/wp-content/themes/wporg-showcase-2022/functions.php +++ b/source/wp-content/themes/wporg-showcase-2022/functions.php @@ -7,7 +7,6 @@ // Filters and Actions add_filter( 'jetpack_images_get_images', __NAMESPACE__ . '\jetpack_fallback_image', 10, 3 ); -add_action( 'wp', __NAMESPACE__ . '\jetpackme_remove_rp', 20 ); add_filter( 'jetpack_relatedposts_filter_thumbnail_size', __NAMESPACE__ . '\jetpackchange_image_size' ); /** @@ -79,18 +78,6 @@ function jetpack_fallback_image( $media, $post_id, $args ) { } } -/** - * Filter JetPack Related Posts from content so we can control it via a block. - */ -function jetpackme_remove_rp() { - if ( class_exists( 'Jetpack_RelatedPosts' ) ) { - $jprp = \Jetpack_RelatedPosts::init(); - $callback = array( $jprp, 'filter_add_target_to_dom' ); - - remove_filter( 'the_content', $callback, 40 ); - } -} - /** * Change JetPack Related Posts image size. */ diff --git a/source/wp-content/themes/wporg-showcase-2022/patterns/subnav-bar.php b/source/wp-content/themes/wporg-showcase-2022/patterns/subnav-bar.php deleted file mode 100644 index 6b228f46..00000000 --- a/source/wp-content/themes/wporg-showcase-2022/patterns/subnav-bar.php +++ /dev/null @@ -1,18 +0,0 @@ - - - - - diff --git a/source/wp-content/themes/wporg-showcase-2022/templates/page.html b/source/wp-content/themes/wporg-showcase-2022/templates/page.html index afba6d28..0001a90c 100644 --- a/source/wp-content/themes/wporg-showcase-2022/templates/page.html +++ b/source/wp-content/themes/wporg-showcase-2022/templates/page.html @@ -1,6 +1,6 @@ - +
diff --git a/source/wp-content/themes/wporg-showcase-2022/templates/single.html b/source/wp-content/themes/wporg-showcase-2022/templates/single.html index bc623253..d43a7458 100644 --- a/source/wp-content/themes/wporg-showcase-2022/templates/single.html +++ b/source/wp-content/themes/wporg-showcase-2022/templates/single.html @@ -6,7 +6,6 @@ -