Use pluggable functions only around functions which cannot be unhooked (#1480)
This commit is contained in:
parent
d6ccb97e0b
commit
8852c27641
2 changed files with 99 additions and 99 deletions
|
@ -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' );
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue