Plugin Directory

Changeset 3223819


Ignore:
Timestamp:
01/16/2025 07:29:25 PM (15 months ago)
Author:
skyword
Message:

Authors: Revise prior commit, and just don't attempt to internationalize the error message

File:
1 edited

Legend:

Unmodified
Added
Removed
  • skyword-publishing-api/tags/1.1.4/php/routes/class-skyword-authors.php

    r3223809 r3223819  
    189189                    $upload = wp_upload_bits($fields['fileName']['value'], null, base64_decode($fields['imageData']['value']));
    190190                    if ( ! empty( $upload['error'] ) ) {
    191                         $errorString = sprintf( __( 'Could not write file ' . 'author-'.$userId . '(' . $upload['error'] . ')', 'skyword-publishing-api' ));
     191                        $errorString = sprintf( 'Could not write file %1$s (%2$s)' , 'author-'.$userId, $upload['error'] );
    192192                        return new WP_REST_Response($errorString, 500);
    193193                    }
Note: See TracChangeset for help on using the changeset viewer.