Make WordPress Core


Ignore:
Timestamp:
10/18/2017 03:03:07 PM (9 years ago)
Author:
SergeyBiryukov
Message:

I18N: Replace function name in error message in WP_Http_Curl::request() and WP_Http_Streams::request() with a placeholder.

Props ramiy.
Fixes #41666.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-http-curl.php

    r41686 r41901  
    180180            else
    181181                $this->stream_handle = fopen( $r['filename'], 'w+' );
    182             if ( ! $this->stream_handle )
    183                 return new WP_Error( 'http_request_failed', sprintf( __( 'Could not open handle for fopen() to %s' ), $r['filename'] ) );
     182            if ( ! $this->stream_handle ) {
     183                return new WP_Error( 'http_request_failed', sprintf(
     184                    /* translators: 1: fopen() 2: file name */
     185                    __( 'Could not open handle for %1$s to %2$s.' ),
     186                    'fopen()',
     187                    $r['filename']
     188                ) );
     189            }
    184190        } else {
    185191            $this->stream_handle = false;
Note: See TracChangeset for help on using the changeset viewer.