Changeset 29064
- Timestamp:
- 07/10/2014 03:48:54 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/widgets.php
r28527 r29064 1143 1143 if ( is_array($sidebars_widgets) ) { 1144 1144 foreach ( $sidebars_widgets as $sidebar => $widgets ) { 1145 if ( $skip_inactive && 'wp_inactive_widgets' == $sidebar )1145 if ( $skip_inactive && ( 'wp_inactive_widgets' === $sidebar || 'orphaned_widgets' === substr( $sidebar, 0, 16 ) ) ) { 1146 1146 continue; 1147 } 1147 1148 1148 1149 if ( is_array($widgets) ) { … … 1425 1426 1426 1427 foreach ( $_sidebars_widgets as $sidebar => $widgets ) { 1427 if ( 'wp_inactive_widgets' == $sidebar || 'orphaned_widgets' == substr( $sidebar, 0, 16 ) )1428 if ( 'wp_inactive_widgets' === $sidebar || 'orphaned_widgets' === substr( $sidebar, 0, 16 ) ) { 1428 1429 continue; 1430 } 1429 1431 1430 1432 if ( !in_array( $sidebar, $registered_sidebar_keys ) ) {
Note: See TracChangeset
for help on using the changeset viewer.