updated theme GeneratePress
version 3.0.2
This commit is contained in:
@ -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;
|
||||
}
|
||||
?>
|
||||
|
Reference in New Issue
Block a user