From 95767decb070effd86a8cff96ac3859792cc1e9b Mon Sep 17 00:00:00 2001
From: IanDelMar <42134098+IanDelMar@users.noreply.github.com>
Date: Sun, 18 Nov 2018 16:26:49 +0100
Subject: [PATCH] Conditionally add pingback
and allow child theme to remove it without changing the header.php.
---
header.php | 1 -
inc/extras.php | 12 +++++++++++-
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/header.php b/header.php
index f286048d..c1f1d33e 100644
--- a/header.php
+++ b/header.php
@@ -22,7 +22,6 @@ $container = get_theme_mod( 'understrap_container_type' );
-
diff --git a/inc/extras.php b/inc/extras.php
index 404dfb7a..2ea36852 100644
--- a/inc/extras.php
+++ b/inc/extras.php
@@ -111,4 +111,14 @@ if ( ! function_exists ( 'understrap_post_nav' ) ) {
' . "\n";
+ }
+}
+add_action( 'wp_head', 'understrap_pingback' );