From 0f51cfd3b47e6ca9c095d4396b8cef855c4ecedb Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 21 Jan 2025 15:34:20 +0000 Subject: [PATCH] Coding Standards: Rename the `$errorString` variable in `wp_xmlrpc_server` methods. This resolves a WPCS warning: {{{ Variable "$errorString" is not in valid snake_case format, try "$error_string" }}} Follow-up to [5054]. See #62279. Built from https://develop.svn.wordpress.org/trunk@59672 git-svn-id: http://core.svn.wordpress.org/trunk@59015 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-xmlrpc-server.php | 6 ++++-- wp-includes/version.php | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/wp-includes/class-wp-xmlrpc-server.php b/wp-includes/class-wp-xmlrpc-server.php index 14a8843e4f..601717e7e8 100644 --- a/wp-includes/class-wp-xmlrpc-server.php +++ b/wp-includes/class-wp-xmlrpc-server.php @@ -6434,9 +6434,10 @@ class wp_xmlrpc_server extends IXR_Server { $upload = wp_upload_bits( $name, null, $bits ); if ( ! empty( $upload['error'] ) ) { /* translators: 1: File name, 2: Error message. */ - $errorString = sprintf( __( 'Could not write file %1$s (%2$s).' ), $name, $upload['error'] ); - return new IXR_Error( 500, $errorString ); + $error_string = sprintf( __( 'Could not write file %1$s (%2$s).' ), $name, $upload['error'] ); + return new IXR_Error( 500, $error_string ); } + // Construct the attachment array. $post_id = 0; if ( ! empty( $data['post_id'] ) ) { @@ -6446,6 +6447,7 @@ class wp_xmlrpc_server extends IXR_Server { return new IXR_Error( 401, __( 'Sorry, you are not allowed to edit this post.' ) ); } } + $attachment = array( 'post_title' => $name, 'post_content' => '', diff --git a/wp-includes/version.php b/wp-includes/version.php index 82d0150bdb..c75486c8b6 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.8-alpha-59671'; +$wp_version = '6.8-alpha-59672'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.