Make WordPress Core

Ticket #55530: 55530.4.diff

File 55530.4.diff, 1.3 KB (added by andrija, 2 years ago)

Default use_desc_for_title set to false (0)

  • src/wp-includes/category-template.php

    diff --git a/src/wp-includes/category-template.php b/src/wp-includes/category-template.php
    index 38c52a79a9..d0a8facd6b 100644
    a b function wp_dropdown_categories( $args = '' ) { 
    517517 *     @type string       $title_li              Text to use for the list title `<li>` element. Pass an empty string
    518518 *                                               to disable. Default 'Categories'.
    519519 *     @type bool|int     $use_desc_for_title    Whether to use the category description as the title attribute.
    520  *                                               Accepts 0, 1, or their bool equivalents. Default 1.
     520 *                                               Accepts 0, 1, or their bool equivalents. Default 0.
    521521 * }
    522522 * @return void|string|false Void if 'echo' argument is true, HTML list of categories if 'echo' is false.
    523523 *                           False if the taxonomy does not exist.
    function wp_list_categories( $args = '' ) { 
    545545                'style'               => 'list',
    546546                'taxonomy'            => 'category',
    547547                'title_li'            => __( 'Categories' ),
    548                 'use_desc_for_title'  => 1,
     548                'use_desc_for_title'  => 0,
    549549        );
    550550
    551551        $parsed_args = wp_parse_args( $args, $defaults );