From 9397cfc53e122aa65b404ffedd63b97d7ed0d0ec Mon Sep 17 00:00:00 2001 From: Alex Wright Date: Fri, 30 Mar 2018 11:03:09 -0500 Subject: [PATCH] Add pluggable function wrappers to inc/extras.php --- inc/extras.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/inc/extras.php b/inc/extras.php index 1f6ef01..4789cd7 100644 --- a/inc/extras.php +++ b/inc/extras.php @@ -7,6 +7,8 @@ * @package understrap */ +add_filter( 'body_class', 'understrap_body_classes' ); + if ( ! function_exists( 'understrap_body_classes' ) ) { /** * Adds custom classes to the array of body classes. @@ -28,7 +30,6 @@ if ( ! function_exists( 'understrap_body_classes' ) ) { return $classes; } } -add_filter( 'body_class', 'understrap_body_classes' ); // Removes tag class from the body_class array to avoid Bootstrap markup styling issues. add_filter( 'body_class', 'understrap_adjust_body_class' ); @@ -78,8 +79,8 @@ if ( ! function_exists( 'understrap_change_logo_class' ) ) { /** * Display navigation to next/previous post when applicable. */ -if ( ! function_exists( 'understrap_post_nav' ) ) : +if ( ! function_exists ( 'understrap_post_nav' ) ) { function understrap_post_nav() { // Don't print empty markup if there's nowhere to navigate. $previous = ( is_attachment() ) ? get_post( get_post()->post_parent ) : get_adjacent_post( false, '', true ); @@ -106,4 +107,4 @@ if ( ! function_exists( 'understrap_post_nav' ) ) :