Making WordPress.org

Changeset 9014


Ignore:
Timestamp:
07/02/2019 04:48:52 AM (6 years ago)
Author:
dd32
Message:

PLugin Directory: ZIP Building: Use the PLUGIN_ZIP_SVN_URL constant directly instead of referencing it through a class constant to avoid warnings when it's not defined in the environment.
This affects Meta Environments primarily.

File:
1 edited

Legend:

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

    r8483 r9014  
    1414    const TMP_DIR     = '/tmp/plugin-zip-builder';
    1515    const SVN_URL     = 'https://plugins.svn.wordpress.org';
    16     const ZIP_SVN_URL = PLUGIN_ZIP_SVN_URL;
    1716
    1817    protected $zip_file       = '';
     
    5958        // Create a checkout of the ZIP SVN
    6059        $res_checkout = SVN::checkout(
    61             self::ZIP_SVN_URL,
     60            PLUGIN_ZIP_SVN_URL,
    6261            $this->tmp_dir,
    6362            array(
     
    8786            }
    8887        } else {
    89             throw new Exception( __METHOD__ . ': Failed to create checkout of ' . self::ZIP_SVN_URL . '.' );
     88            throw new Exception( __METHOD__ . ': Failed to create checkout of ' . PLUGIN_ZIP_SVN_URL . '.' );
    9089        }
    9190
Note: See TracChangeset for help on using the changeset viewer.