Make WordPress Core

Ticket #41666: 41666.2.patch

File 41666.2.patch, 1.6 KB (added by ramiy, 9 years ago)

add <code> tags around the function name

  • wp-includes/class-wp-http-curl.php

     
    179179                                $this->stream_handle = @fopen( $r['filename'], 'w+' );
    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                                /* translators: 1: fopen() 2: file name */
     184                                return new WP_Error( 'http_request_failed', sprintf( __( 'Could not open handle for %1$s to %2$s.' ), '<code>fopen()</code>', $r['filename'] ) );
     185                        }
    184186                } else {
    185187                        $this->stream_handle = false;
    186188                }
  • wp-includes/class-wp-http-streams.php

     
    223223                                $stream_handle = @fopen( $r['filename'], 'w+' );
    224224                        else
    225225                                $stream_handle = fopen( $r['filename'], 'w+' );
    226                         if ( ! $stream_handle )
    227                                 return new WP_Error( 'http_request_failed', sprintf( __( 'Could not open handle for fopen() to %s' ), $r['filename'] ) );
     226                        if ( ! $stream_handle ) {
     227                                /* translators: 1: fopen() 2: file name */
     228                                return new WP_Error( 'http_request_failed', sprintf( __( 'Could not open handle for %1$s to %2$s.' ), '<code>fopen()</code>', $r['filename'] ) );
     229                        }
    228230
    229231                        $bytes_written = 0;
    230232                        while ( ! feof($handle) && $keep_reading ) {