_wp_sidebars_changed

Handle sidebars config after theme change.

Description

_wp_sidebars_changed(); 

Usage

  1. if ( !function_exists( '_wp_sidebars_changed' ) ) { 
  2. require_once ABSPATH . WPINC . '/widgets.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = _wp_sidebars_changed(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/widgets.php  
  1. function _wp_sidebars_changed() { 
  2. global $sidebars_widgets; 
  3.  
  4. if ( ! is_array( $sidebars_widgets ) ) 
  5. $sidebars_widgets = wp_get_sidebars_widgets(); 
  6.