From cd610922d012929786bf04d8a58cfea6b51ce7a4 Mon Sep 17 00:00:00 2001 From: Felix Arntz Date: Wed, 24 Jul 2024 21:42:17 +0000 Subject: [PATCH] Taxonomy: Ensure `get_edit_term_link()` produces the correct result when called without taxonomy. This fixes an oversight missed in [36646]. Props debarghyabanerjee. Fixes #61726. See #35922. Built from https://develop.svn.wordpress.org/trunk@58807 git-svn-id: http://core.svn.wordpress.org/trunk@58203 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/link-template.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-includes/link-template.php b/wp-includes/link-template.php index dde12c1616..37e8684bf0 100644 --- a/wp-includes/link-template.php +++ b/wp-includes/link-template.php @@ -1092,7 +1092,7 @@ function get_edit_term_link( $term, $taxonomy = '', $object_type = '' ) { } $args = array( - 'taxonomy' => $taxonomy, + 'taxonomy' => $tax->name, 'tag_ID' => $term_id, ); diff --git a/wp-includes/version.php b/wp-includes/version.php index ef8dd9b041..dbea95c968 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-58806'; +$wp_version = '6.7-alpha-58807'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.