WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/01/2019 12:50:14 PM (9 months ago)
Author:
pento
Message:

Coding Standards: Fix the Squiz.PHP.DisallowMultipleAssignments violations in wp-admin.

See #47632.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-filesystem-ftpsockets.php

    r45226 r45583  
    137137        $temp = wp_tempnam( $file );
    138138
    139         if ( ! $temphandle = fopen( $temp, 'w+' ) ) {
     139        $temphandle = fopen( $temp, 'w+' );
     140        if ( ! $temphandle ) {
    140141            unlink( $temp );
    141142            return false;
     
    191192     */
    192193    public function put_contents( $file, $contents, $mode = false ) {
    193         $temp = wp_tempnam( $file );
    194         if ( ! $temphandle = @fopen( $temp, 'w+' ) ) {
     194        $temp       = wp_tempnam( $file );
     195        $temphandle = @fopen( $temp, 'w+' );
     196        if ( ! $temphandle ) {
    195197            unlink( $temp );
    196198            return false;
Note: See TracChangeset for help on using the changeset viewer.