[wp-trac] [WordPress Trac] #26598: Broken methods in WP_Filesystem_Direct and WP_Filesystem_SSH2

WordPress Trac noreply at wordpress.org
Mon Feb 24 23:27:44 UTC 2014


#26598: Broken methods in WP_Filesystem_Direct and WP_Filesystem_SSH2
-------------------------------------+------------------
 Reporter:  DavidAnderson            |       Owner:
     Type:  defect (bug)             |      Status:  new
 Priority:  normal                   |   Milestone:  3.9
Component:  Filesystem API           |     Version:  2.8
 Severity:  normal                   |  Resolution:
 Keywords:  has-patch needs-testing  |     Focuses:
-------------------------------------+------------------

Comment (by dd32):

 Instead of using `sprintf` could we simply use negative positions with
 substr? ie, `substr( $data, -3 )` to pull the last 3 characters?

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


More information about the wp-trac mailing list