Make WordPress Core


Ignore:
Timestamp:
03/27/2026 10:18:14 PM (8 months ago)
Author:
SergeyBiryukov
Message:

Code Quality: Unwrap sprintf() with one argument.

This removes unnecessary uses of the sprintf() function when localizing or outputting static strings. These changes simplify the code and improve readability without affecting functionality.

Props Soean.
See #64898.

File:
1 edited

Legend:

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

    r61464 r62167  
    297297        ) {
    298298                if ( ! $this->is_enabled ) {
    299                         $this->error = new IXR_Error( 405, sprintf( __( 'XML-RPC services are disabled on this site.' ) ) );
     299                        $this->error = new IXR_Error( 405, __( 'XML-RPC services are disabled on this site.' ) );
    300300                        return false;
    301301                }
Note: See TracChangeset for help on using the changeset viewer.