Use pluggable functions only around functions which cannot be unhooked (#1480)

This commit is contained in:
Ismail El Korchi 2022-01-01 22:15:14 +01:00 committed by GitHub
parent d6ccb97e0b
commit 8852c27641
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 99 additions and 99 deletions

View file

@ -12,7 +12,6 @@ if ( ! defined( '_S_VERSION' ) ) {
define( '_S_VERSION', '1.0.0' ); define( '_S_VERSION', '1.0.0' );
} }
if ( ! function_exists( '_s_setup' ) ) :
/** /**
* Sets up theme defaults and registers support for various WordPress features. * Sets up theme defaults and registers support for various WordPress features.
* *
@ -101,7 +100,6 @@ if ( ! function_exists( '_s_setup' ) ) :
) )
); );
} }
endif;
add_action( 'after_setup_theme', '_s_setup' ); add_action( 'after_setup_theme', '_s_setup' );
/** /**

View file

@ -50,6 +50,7 @@ function _s_jetpack_setup() {
} }
add_action( 'after_setup_theme', '_s_jetpack_setup' ); add_action( 'after_setup_theme', '_s_jetpack_setup' );
if ( ! function_exists( '_s_infinite_scroll_render' ) ) :
/** /**
* Custom render function for Infinite Scroll. * Custom render function for Infinite Scroll.
*/ */
@ -63,3 +64,4 @@ function _s_infinite_scroll_render() {
endif; endif;
} }
} }
endif;