~canonical-sysadmins/wordpress/4.8.1

« back to all changes in this revision

Viewing changes to wp-admin/includes/class-wp-filesystem-ftpsockets.php

  • Committer: Barry Price
  • Date: 2016-08-17 04:49:28 UTC
  • mto: This revision was merged to the branch mainline in revision 22.
  • Revision ID: barry.price@canonical.com-20160817044928-viijiwb4tl8jwzmp
new upstream release 4.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
121
121
 
122
122
                $temp = wp_tempnam( $file );
123
123
 
124
 
                if ( ! $temphandle = fopen($temp, 'w+') )
 
124
                if ( ! $temphandle = fopen( $temp, 'w+' ) ) {
 
125
                        unlink( $temp );
125
126
                        return false;
 
127
                }
126
128
 
127
129
                mbstring_binary_safe_encoding();
128
130