: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Customize API: WP_Customize_Sidebar_Section class
* Customizer section representing widget area (sidebar).
* @see WP_Customize_Section
class WP_Customize_Sidebar_Section extends WP_Customize_Section {
public $type = 'sidebar';
* Gather the parameters passed to client JavaScript via JSON.
* @return array The array to be exported to the client as JSON.
$json['sidebarId'] = $this->sidebar_id;
* Whether the current sidebar is rendered on the page.
* @return bool Whether sidebar is rendered.
public function active_callback() {
return $this->manager->widgets->is_sidebar_rendered( $this->sidebar_id );