WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #27758


Ignore:
Timestamp:
04/11/2014 02:45:31 PM (6 years ago)
Author:
SergeyBiryukov
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #27758

    • Property Version changed from 3.8.1 to 3.7
  • Ticket #27758 – Description

    initial v1  
    11This is a follow-up to #22704, and the short version because after my long version crashed on 'continue to preview' :(
     2{{{
     3return new WP_Error( 'mkdir_failed_ziparchive', __( 'Could not create directory.' ), substr( $_dir, strlen( $to ) ) );
     4}}}
     5`substr( $_dir, strlen( $to ) )` results in false for the 'upgrade' folder and the zipfile folder itself. For the other folders the 'data' is simply not very informative and could be even confusing.
    26
    3 return new WP_Error( 'mkdir_failed_ziparchive', __( 'Could not create directory.' ), substr( $_dir, strlen( $to ) ) );
    4 
    5 substr( $_dir, strlen( $to ) ) results in false for the 'upgrade' folder and the zipfile folder itself. For the other folders the 'data' is simply not very informative and could be even confusing.
    6 
    7 Before #25693, it used to be just '$_dir'; isn't that a much more informative feedback?
     7Before [25780], it used to be just `$_dir`; isn't that a much more informative feedback?