[wp-trac] [WordPress Trac] #33480: After upgrade to 4.3 unable to update plugins.

WordPress Trac noreply at wordpress.org
Fri Aug 21 03:59:52 UTC 2015


#33480: After upgrade to 4.3 unable to update plugins.
-----------------------------+-----------------------------
 Reporter:  jobst            |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  4.3.1
Component:  Upgrade/Install  |     Version:  4.3
 Severity:  major            |  Resolution:
 Keywords:  needs-patch      |     Focuses:  administration
-----------------------------+-----------------------------
Changes (by dd32):

 * keywords:   => needs-patch


Comment:

 Replying to [comment:3 jobst]:
 > Can you give me some more info in which file is_writable() is located,
 please.

 Sure, The specific usage is triggered from here:
 [https://core.trac.wordpress.org/browser/tags/4.3/src/wp-admin/includes
 /class-wp-upgrader.php#L332 WP_Upgrader::clear_destination()] and the
 implementation is: [https://core.trac.wordpress.org/browser/tags/4.3/src
 /wp-admin/includes/class-wp-filesystem-ssh2.php#L381
 WP_Filesystem_SSH2::is_writable()]

 A Simple way to test the `is_writable()` method will be to use something
 like the `Debug Bar Console` plugin, and running this code:
 {{{
 <?php

 WP_Filesystem( array( 'hostname' => 'localhost', 'username' => 'my-user',
 'password' => 'my-password' ) );

 global $wp_filesystem;

 var_dump( time(), $wp_filesystem->is_writable( ABSPATH ),
 $wp_filesystem->is_writable( WP_PLUGIN_DIR . '/akismet/akismet.php' ) );
 }}}

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


More information about the wp-trac mailing list