[wp-trac] [WordPress Trac] #33058: $wp_filesystem->exists('') returns a wrong answer (when FS_METHOD='ftpext').

WordPress Trac noreply at wordpress.org
Wed Jul 22 14:10:22 UTC 2015


#33058: $wp_filesystem->exists('') returns a wrong answer (when
FS_METHOD='ftpext').
----------------------------+------------------------------
 Reporter:  Zdrobau         |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Filesystem API  |     Version:
 Severity:  normal          |  Resolution:
 Keywords:                  |     Focuses:
----------------------------+------------------------------

Comment (by Zdrobau):

 I got this error because I use the following methods:
 {{{
 WP_Upgrader::download_package(); WP_Upgrader::unpack_package()
 }}}
 , and I want to install a theme from the zip archive that have a name like
 {{{
 theme-name-.-templates-.- 1.0.1-.-md5.zip
 }}}
 in a folder like
 {{{
 wp-content/themes/theme-name-parent
 }}}
 None of them has the option to rename this. When I call
 {{{
 WP_Upgrader::install_package()
 }}}
  with
 {{{
 $args['destination'] = WP_CONTENT_DIR . '/ themes /' . 'theme-name-parent'
 }}}
  and
 {{{
 FS_METHOD = 'direct'
 }}}
  this is possible. But not when
 {{{
 FS_METHOD = 'ftpext'
 }}}
 I think that
 {{{
 WP_Upgrader::install_package()
 }}}
  method should have the same behavior in both cases.

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


More information about the wp-trac mailing list