Making WordPress.org


Ignore:
Timestamp:
05/23/2016 02:37:35 AM (8 years ago)
Author:
dd32
Message:

Plugin Directory: ZIPs: Handle stable_tag's which are set to things like .12.3 rather than the expected 0.12.3.

See #1578

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/zip/class-builder.php

    r3210 r3212  
    9898
    9999        $res = SVN::export( $svn_url, $build_dir, $svn_params );
     100        // Handle tags which we store as 0.blah but are in /tags/.blah
     101        if ( ! $res['result'] && '0.' == substr( $this->version, 0, 2 ) ) {
     102            $_version = substr( $this->version, 1 );
     103            $svn_url = self::SVN_URL . "/{$this->slug}/tags/{$_version}/";
     104            $res = SVN::export( $svn_url, $build_dir, $svn_params );
     105        }
    100106        if ( ! $res['result'] ) {
    101107            throw new Exception( __METHOD__ . ': ' . $res['errors'][0]['error_message'], 404 );
Note: See TracChangeset for help on using the changeset viewer.