Making WordPress.org

Changeset 5435


Ignore:
Timestamp:
04/29/2017 07:37:36 PM (7 years ago)
Author:
ocean90
Message:

Plugin Directory: Require tag and type parameters when importing plugins to translate.w.org.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/bin/import-plugin-to-glotpress.php

    r4223 r5435  
    2121}
    2222
    23 foreach ( array( 'url', 'abspath', 'plugin' ) as $opt ) {
     23foreach ( array( 'url', 'abspath', 'plugin', 'tag', 'type' ) as $opt ) {
    2424    if ( empty( $opts[ $opt ] ) ) {
    2525        fwrite( STDERR, "Missing Parameter: $opt\n" );
    26         fwrite( STDERR, "Usage: php {$argv[0]} --plugin hello-dolly --abspath /home/example/public_html --url https://wordpress.org/plugins/\n" );
     26        fwrite( STDERR, "Usage: php {$argv[0]} --plugin hello-dolly --abspath /home/example/public_html --url https://wordpress.org/plugins/ --tag trunk --type readme\n" );
    2727        fwrite( STDERR, "--url and --abspath will be guessed if possible.\n" );
    2828        die();
Note: See TracChangeset for help on using the changeset viewer.