Commit 0611b08609 for wordpress.org

commit 0611b08609f94ac02b62ed09a39eea4c451a1cc3
Author: peterwilsoncc <peterwilsoncc@git.wordpress.org>
Date:   Mon Sep 28 05:12:49 2026 +0000

    Options, Meta APIs: Correct `$count` argument passed by reference.

    In r61224 the `$c` variable in `wp_ajax_add_meta()` was renamed `$count`. This update a third instance of the variable that was missed in the original commit.

    Follow up to r61224.

    Props mazharul78, audrasjb, harishtewari, mukesh27.
    Fixes #65934.


    Built from https://develop.svn.wordpress.org/trunk@63959


    git-svn-id: http://core.svn.wordpress.org/trunk@63125 1a063a9b-81f0-0310-95a4-ce76da25c4cd

diff --git a/wp-admin/includes/ajax-actions.php b/wp-admin/includes/ajax-actions.php
index c05633428a..26c8f6b6c0 100644
--- a/wp-admin/includes/ajax-actions.php
+++ b/wp-admin/includes/ajax-actions.php
@@ -1747,7 +1747,7 @@ function wp_ajax_add_meta() {
 						'meta_value' => $value,
 						'meta_id'    => $meta_id,
 					),
-					$c
+					$count
 				),
 				'position'     => 0,
 				'supplemental' => array( 'postid' => $meta->post_id ),
diff --git a/wp-includes/version.php b/wp-includes/version.php
index 293de607ce..1b70da48a4 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '7.2-alpha-63958';
+$wp_version = '7.2-alpha-63959';

 /**
  * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.