updated theme GeneratePress version 3.0.2

This commit is contained in:
2020-10-20 15:16:18 +00:00
committed by Gitium
parent dcc1a6ca18
commit 1047e0b29f
129 changed files with 16624 additions and 8924 deletions

View File

@ -39,7 +39,7 @@ if ( ! function_exists( 'generate_construct_sidebars' ) ) {
* The below hook was removed in 2.0, but we'll keep the call here so child themes
* don't lose their sidebar when they update the theme.
*/
add_action( 'generate_sidebars', 'generate_construct_sidebars' );
add_action( 'generate_sidebars', 'generate_construct_sidebars' );
}
/**
@ -50,7 +50,7 @@ if ( ! function_exists( 'generate_construct_sidebars' ) ) {
* @param string $area Left or right sidebar.
*/
function generate_do_default_sidebar_widgets( $area ) {
if ( 'nav-' . $area === generate_get_navigation_location() ) {
if ( 'nav-' . $area === generate_get_navigation_location() ) { // phpcs:ignore -- False positive.
return;
}
@ -65,7 +65,7 @@ function generate_do_default_sidebar_widgets( $area ) {
}
}
if ( ! apply_filters( 'generate_show_default_sidebar_widgets', true ) ) {
if ( ! apply_filters( 'generate_show_default_sidebar_widgets', true ) || generate_is_using_flexbox() ) {
return;
}
?>