[wp-trac] [WordPress Trac] #31811: Update error: not able to create directory

WordPress Trac noreply at wordpress.org
Tue Mar 31 01:39:34 UTC 2015


#31811: Update error: not able to create directory
-----------------------------+--------------------
 Reporter:  afragen          |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  4.2
Component:  Upgrade/Install  |     Version:  trunk
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+--------------------

Comment (by afragen):

 I think I found a solution, but I'm not set up to create a diff. Starts
 line 266 in /wp-admin/includes/class-wp-upgrader.php


 {{{
                 // We need a working directory - Strip off any .tmp or
 .zip suffixes
                 // If empty after stripping create 'temp' name
                 $working_dir_stripped = basename( basename( $package,
 '.tmp' ), '.zip' );
                 if ( empty( $working_dir_stripped ) ) {
                         $working_dir_stripped = 'temp';
                 }

                 $working_dir = $upgrade_folder . $working_dir_stripped;

 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/31811#comment:6>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list