@@ 143-145 (lines=3) @@ | ||
140 | ||
141 | // Only relax the filesystem checks when the update doesn't include new files |
|
142 | $allow_relaxed_file_ownership = false; |
|
143 | if ( 'core' == $type && isset( $item->new_files ) && ! $item->new_files ) { |
|
144 | $allow_relaxed_file_ownership = true; |
|
145 | } |
|
146 | ||
147 | // If we can't do an auto core update, we may still be able to email the user. |
|
148 | if ( ! $skin->request_filesystem_credentials( false, $context, $allow_relaxed_file_ownership ) || $this->is_vcs_checkout( $context ) ) { |
|
@@ 325-327 (lines=3) @@ | ||
322 | } |
|
323 | ||
324 | $allow_relaxed_file_ownership = false; |
|
325 | if ( 'core' == $type && isset( $item->new_files ) && ! $item->new_files ) { |
|
326 | $allow_relaxed_file_ownership = true; |
|
327 | } |
|
328 | ||
329 | // Boom, This sites about to get a whole new splash of paint! |
|
330 | $upgrade_result = $upgrader->upgrade( $upgrader_item, array( |