Making WordPress.org

Changeset 12977


Ignore:
Timestamp:
11/22/2023 07:21:12 AM (8 months ago)
Author:
tellyworth
Message:

Plugins: restore code that was incorrectly removed.

Accidentally removed in r12975.

Props ocean90.

File:
1 edited

Legend:

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

    r12975 r12977  
    572572
    573573        if ( ! $svn_info || ! $svn_info['result'] ) {
     574            $stable_tag = 'trunk';
     575            $stable_url = self::PLUGIN_SVN_BASE . "/{$plugin_slug}/trunk";
     576            $svn_info   = SVN::info( $stable_url );
     577        }
     578
     579        if ( ! $svn_info['result'] ) {
    574580            throw new Exception( 'Could not find stable SVN URL: ' . implode( ' ', reset( $svn_info['errors'] ) ) );
    575581        }
Note: See TracChangeset for help on using the changeset viewer.