[wp-trac] [WordPress Trac] #36570: PHP Warning mkdir(): File exists only when I update the translations

WordPress Trac noreply at wordpress.org
Thu May 12 12:39:51 UTC 2016


#36570: PHP Warning mkdir(): File exists only when I update the translations
------------------------------------+----------------------
 Reporter:  overclokk               |       Owner:  ocean90
     Type:  defect (bug)            |      Status:  closed
 Priority:  normal                  |   Milestone:  4.6
Component:  Filesystem API          |     Version:  4.5
 Severity:  normal                  |  Resolution:  fixed
 Keywords:  has-patch dev-feedback  |     Focuses:
------------------------------------+----------------------
Changes (by ocean90):

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


Comment:

 In [changeset:"37421"]:
 {{{
 #!CommitTicketReference repository="" revision="37421"
 Filesystem API: Don't add `'.'` to the list of directories which need to
 be checked/created when extracting a file.

 Prevents a PHP warning by `WP_Filesystem_Direct::mkdir()` when installing
 a language pack which doesn't have subdirectories.

 Props tfrommen.
 Fixes #36570.
 }}}

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


More information about the wp-trac mailing list