Make WordPress Core

Changeset 59672


Ignore:
Timestamp:
01/21/2025 03:32:31 PM (4 months ago)
Author:
SergeyBiryukov
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-xmlrpc-server.php

    r59665 r59672  
    64356435        if ( ! empty( $upload['error'] ) ) {
    64366436            /* translators: 1: File name, 2: Error message. */
    6437             $errorString = sprintf( __( 'Could not write file %1$s (%2$s).' ), $name, $upload['error'] );
    6438             return new IXR_Error( 500, $errorString );
    6439         }
     6437            $error_string = sprintf( __( 'Could not write file %1$s (%2$s).' ), $name, $upload['error'] );
     6438            return new IXR_Error( 500, $error_string );
     6439        }
     6440
    64406441        // Construct the attachment array.
    64416442        $post_id = 0;
     
    64476448            }
    64486449        }
     6450
    64496451        $attachment = array(
    64506452            'post_title'     => $name,
Note: See TracChangeset for help on using the changeset viewer.