Make WordPress Core

Opened 5 days ago

Closed 5 days ago

#64881 closed defect (bug) (fixed)

Code Quality: Remove unused variable $tax in edit_term_link()

Reported by: soean's profile Soean Owned by: audrasjb's profile audrasjb
Milestone: 7.0 Priority: normal
Severity: normal Version: 4.7
Component: Taxonomy Keywords: has-patch commit
Focuses: Cc:

Description

The usage of $tax in edit_term_link() was removed in [38698#file8].

The assignment $tax = get_taxonomy($term->taxonomy); should also be removed from this function, as it is not used.

Change History (4)

This ticket was mentioned in PR #11286 on WordPress/wordpress-develop by @Soean.


5 days ago
#1

  • Keywords has-patch added

This pull request makes a minor change to the edit_term_link function in link-template.php, removing an unused variable assignment. This helps clean up the code without affecting functionality.

Trac ticket: https://core.trac.wordpress.org/ticket/64881

#2 @mukesh27
5 days ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 7.0

Introduce in [15792]

#3 @audrasjb
5 days ago

  • Owner set to audrasjb
  • Status changed from new to reviewing

Self assigning for final review and commit.

#4 @audrasjb
5 days ago

  • Resolution set to fixed
  • Status changed from reviewing to closed

In 62045:

Coding Standards: Remove unused $tax variable in edit_term_link().

This changeset removes an unused variable assignment in edit_term_link().

Props soean, mukesh27.
Fixes #64881.

Note: See TracTickets for help on using tickets.