Make WordPress Core

Changeset 62066


Ignore:
Timestamp:
03/19/2026 01:40:37 PM (9 days ago)
Author:
SergeyBiryukov
Message:

Code Quality: Simplify tag URL assignment in wp_generate_tag_cloud().

This removes a redundant ternary that no longer affects the logic after the esc_url() call on the tag URL was moved to the output in an earlier revision.

Follow-up to [9518], [11383], [32996].

Props Soean.
See #64898.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/category-template.php

    r61995 r62066  
    977977        $tags_data[] = array(
    978978            'id'              => $tag_id,
    979             'url'             => ( '#' !== $tag->link ) ? $tag->link : '#',
     979            'url'             => $tag->link,
    980980            'role'            => ( '#' !== $tag->link ) ? '' : ' role="button"',
    981981            'name'            => $tag->name,
Note: See TracChangeset for help on using the changeset viewer.