Commit cd610922d0 for wordpress.org

commit cd610922d012929786bf04d8a58cfea6b51ce7a4
Author: Felix Arntz <felix-arntz@leaves-and-love.net>
Date:   Wed Jul 24 21:42:17 2024 +0000

    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

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.