Ticket #50347: 50347.patch
File 50347.patch, 959 bytes (added by , 5 years ago) |
---|
-
src/wp-includes/widgets.php
918 918 } 919 919 920 920 /** 921 * Determines whether a sidebar is in use. 921 * Determines whether a sidebar is in use. By 'in use', this means that the sidebar contains widgets, not that it is loaded on the page. 922 922 * 923 923 * For more information on this and similar theme functions, check out 924 924 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ … … 927 927 * @since 2.8.0 928 928 * 929 929 * @param string|int $index Sidebar name, id or number to check. 930 * @return bool true if the sidebar is in use , false otherwise.930 * @return bool true if the sidebar is in use (has widgets), false otherwise. 931 931 */ 932 932 function is_active_sidebar( $index ) { 933 933 $index = ( is_int( $index ) ) ? "sidebar-$index" : sanitize_title( $index );