Commit ffba255c10 for wordpress.org

commit ffba255c10f56d312140efd769cbe3f6b1f8e981
Author: Peter Wilson <wilson@peterwilson.cc>
Date:   Wed Sep 17 22:45:28 2025 +0000

    Coding Standards: Rename arguments in `comment_type()`.

    Rename the arguments in `comment_type()` to use underscore separators per coding standards and to add vowels for clarity.

    "Pingback" and "Trackback" in the variable names are left unchanged as they are concatenated for display to site owners.

    See #63168.


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


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

diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php
index 59f89f3a84..b5d37f5aae 100644
--- a/wp-includes/comment-template.php
+++ b/wp-includes/comment-template.php
@@ -1180,30 +1180,30 @@ function get_comment_type( $comment_id = 0 ) {
  *
  * @since 0.71
  *
- * @param string|false $commenttxt   Optional. String to display for comment type. Default false.
- * @param string|false $trackbacktxt Optional. String to display for trackback type. Default false.
- * @param string|false $pingbacktxt  Optional. String to display for pingback type. Default false.
+ * @param string|false $comment_text   Optional. String to display for comment type. Default false.
+ * @param string|false $trackback_text Optional. String to display for trackback type. Default false.
+ * @param string|false $pingback_text  Optional. String to display for pingback type. Default false.
  */
-function comment_type( $commenttxt = false, $trackbacktxt = false, $pingbacktxt = false ) {
-	if ( false === $commenttxt ) {
-		$commenttxt = _x( 'Comment', 'noun' );
+function comment_type( $comment_text = false, $trackback_text = false, $pingback_text = false ) {
+	if ( false === $comment_text ) {
+		$comment_text = _x( 'Comment', 'noun' );
 	}
-	if ( false === $trackbacktxt ) {
-		$trackbacktxt = __( 'Trackback' );
+	if ( false === $trackback_text ) {
+		$trackback_text = __( 'Trackback' );
 	}
-	if ( false === $pingbacktxt ) {
-		$pingbacktxt = __( 'Pingback' );
+	if ( false === $pingback_text ) {
+		$pingback_text = __( 'Pingback' );
 	}
 	$type = get_comment_type();
 	switch ( $type ) {
 		case 'trackback':
-			echo $trackbacktxt;
+			echo $trackback_text;
 			break;
 		case 'pingback':
-			echo $pingbacktxt;
+			echo $pingback_text;
 			break;
 		default:
-			echo $commenttxt;
+			echo $comment_text;
 	}
 }

diff --git a/wp-includes/version.php b/wp-includes/version.php
index cfcb58d003..0978059a50 100644
--- a/wp-includes/version.php
+++ b/wp-includes/version.php
@@ -16,7 +16,7 @@
  *
  * @global string $wp_version
  */
-$wp_version = '6.9-alpha-60778';
+$wp_version = '6.9-alpha-60779';

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