Bricks Version: 1.5.7
Browser: Chrome 90
OS: Windows
Native search functionality throws warning and deprecated error after latest update.
I render the search page template based on the search result. If no results are found, render the empty template. If results are found, render another template.
/**
- Code
*/
function select_template_search_result(){
if(is_search()) {
if( have_posts() ) {
do_shortcode( ‘[bricks_template id=“4587”]’ );
} else {
do_shortcode( ‘[bricks_template id=“4746”]’ );
}
}else{
do_shortcode( ‘[bricks_template id=“4746”]’ );
}
}
/**
- Error
/
Warning : Undefined array key 1 in wp-content/themes/bricks/includes/assets.php* on line 679
Deprecated : str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /wp-content/themes/bricks/includes/assets.php** on line 679
Warning : Undefined array key 1 in wp-content/themes/bricks/includes/assets.php** on line 679
Deprecated : str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in wp-content/themes/bricks/includes/assets.php on line 679