[wp-trac] [WordPress Trac] #37412: Change default value of $context to empty string for request_filesystem_credentials() and get_filesystem_method()

WordPress Trac noreply at wordpress.org
Fri Jul 22 12:09:56 UTC 2016


#37412: Change default value of $context to empty string for
request_filesystem_credentials() and get_filesystem_method()
----------------------------+----------------------
 Reporter:  ocean90         |       Owner:  ocean90
     Type:  defect (bug)    |      Status:  closed
 Priority:  normal          |   Milestone:  4.6
Component:  Filesystem API  |     Version:
 Severity:  normal          |  Resolution:  fixed
 Keywords:  has-patch       |     Focuses:  docs
----------------------------+----------------------
Changes (by ocean90):

 * owner:   => ocean90
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"38138"]:
 {{{
 #!CommitTicketReference repository="" revision="38138"
 Filesystem API: Change the default value for the `$context` parameter of
 `get_filesystem_method()` and `request_filesystem_credentials()` to an
 empty string.

 `$context` is a full path to the directory that is tested for being
 writable. A path shouldn't be a boolean value.
 This also updates `WP_Upgrader_Skin::request_filesystem_credentials()` and
 `Automatic_Upgrader_Skin::request_filesystem_credentials()` and adds
 missing docs.

 Props DrewAPicture, ocean90.
 Fixes #37412.
 }}}

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


More information about the wp-trac mailing list