Ticket #25656: 25656.diff
| File 25656.diff, 1.5 KB (added by , 13 years ago) |
|---|
-
wp-includes/widgets.php
859 859 860 860 $sidebars_widgets = wp_get_sidebars_widgets(); 861 861 if ( empty( $wp_registered_sidebars[ $index ] ) || empty( $sidebars_widgets[ $index ] ) || ! is_array( $sidebars_widgets[ $index ] ) ) { 862 //temporary_hook #25368 863 do_action( 'temp_dynamic_sidebar_before', $index, false ); 864 //temporary_hook #25368 865 do_action( 'temp_dynamic_sidebar_after', $index, false ); 866 //temporary_hook #25368 867 return apply_filters( 'temp_dynamic_sidebar_has_widgets', false, $index ); 862 return false; 868 863 } 869 864 870 //temporary_hook #25368871 do_action( 'temp_dynamic_sidebar_before', $index, true );872 865 $sidebar = $wp_registered_sidebars[$index]; 873 866 874 867 $did_one = false; … … 904 897 } 905 898 } 906 899 907 //temporary_hook #25368908 do_action( 'temp_dynamic_sidebar_after', $index, true );909 //temporary_hook #25368910 $did_one = apply_filters( 'temp_dynamic_sidebar_has_widgets', $did_one, $index );911 900 return $did_one; 912 901 } 913 902 … … 987 976 $index = ( is_int($index) ) ? "sidebar-$index" : sanitize_title($index); 988 977 $sidebars_widgets = wp_get_sidebars_widgets(); 989 978 $is_active_sidebar = ! empty( $sidebars_widgets[$index] ); 990 //temporary_hook #25368 991 $is_active_sidebar = apply_filters( 'temp_is_active_sidebar', $is_active_sidebar, $index ); 992 return $is_active_sidebar; 979 980 return $is_active_sidebar; 993 981 } 994 982 995 983 /* Internal Functions */
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)