Changeset 35102 for trunk/src/wp-includes/class-wp-customize-widgets.php
- Timestamp:
- 10/13/2015 01:32:27 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-widgets.php
r34563 r35102 366 366 } 367 367 368 $is_registered_sidebar = is set( $wp_registered_sidebars[ $sidebar_id ]);368 $is_registered_sidebar = is_registered_sidebar( $sidebar_id ); 369 369 $is_inactive_widgets = ( 'wp_inactive_widgets' === $sidebar_id ); 370 370 $is_active_sidebar = ( $is_registered_sidebar && ! $is_inactive_widgets ); … … 1103 1103 * @access public 1104 1104 * 1105 * @global array $wp_registered_sidebars1106 *1107 1105 * @param bool $is_active Whether the sidebar is active. 1108 1106 * @param string $sidebar_id Sidebar ID. … … 1110 1108 */ 1111 1109 public function tally_sidebars_via_is_active_sidebar_calls( $is_active, $sidebar_id ) { 1112 if ( is set( $GLOBALS['wp_registered_sidebars'][$sidebar_id]) ) {1110 if ( is_registered_sidebar( $sidebar_id ) ) { 1113 1111 $this->rendered_sidebars[] = $sidebar_id; 1114 1112 } … … 1131 1129 * @access public 1132 1130 * 1133 * @global array $wp_registered_sidebars1134 *1135 1131 * @param bool $has_widgets Whether the current sidebar has widgets. 1136 1132 * @param string $sidebar_id Sidebar ID. … … 1138 1134 */ 1139 1135 public function tally_sidebars_via_dynamic_sidebar_calls( $has_widgets, $sidebar_id ) { 1140 if ( is set( $GLOBALS['wp_registered_sidebars'][$sidebar_id]) ) {1136 if ( is_registered_sidebar( $sidebar_id ) ) { 1141 1137 $this->rendered_sidebars[] = $sidebar_id; 1142 1138 }
Note: See TracChangeset
for help on using the changeset viewer.