Make WordPress Core

Ticket #50347: 50347.patch

File 50347.patch, 959 bytes (added by SUM1, 5 years ago)
  • src/wp-includes/widgets.php

     
    918918}
    919919
    920920/**
    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.
    922922 *
    923923 * For more information on this and similar theme functions, check out
    924924 * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/
     
    927927 * @since 2.8.0
    928928 *
    929929 * @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.
    931931 */
    932932function is_active_sidebar( $index ) {
    933933        $index             = ( is_int( $index ) ) ? "sidebar-$index" : sanitize_title( $index );