Making WordPress.org


Ignore:
Timestamp:
06/19/2016 08:40:01 PM (8 years ago)
Author:
obenland
Message:

Plugin Directory: Move readme classes into their own namespace.

See #1584.

File:
1 edited

Legend:

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

    r3469 r3477  
    22namespace WordPressdotorg\Plugin_Directory\CLI;
    33use WordPressdotorg\Plugin_Directory\Plugin_Directory;
    4 use WordPressdotorg\Plugin_Directory\Readme_Parser;
     4use WordPressdotorg\Plugin_Directory\Readme\Parser;
    55use WordPressdotorg\Plugin_Directory\Template;
    66use WordPressdotorg\Plugin_Directory\Tools;
     
    301301
    302302            $trunk_readme_file = self::PLUGIN_SVN_BASE . "/{$plugin_slug}/trunk/{$trunk_readme_file}";
    303             $trunk_readme = new Readme_Parser( $trunk_readme_file );
     303            $trunk_readme = new Parser( $trunk_readme_file );
    304304
    305305            $stable_tag = $trunk_readme->stable_tag;
     
    355355        // The readme may not actually exist, but that's okay.
    356356        $readme = $this->find_readme_file( $tmp_dir . '/export' );
    357         $readme = new Readme_Parser( $readme );
     357        $readme = new Parser( $readme );
    358358
    359359        // There must be valid plugin headers though.
Note: See TracChangeset for help on using the changeset viewer.