Making WordPress.org


Ignore:
Timestamp:
12/19/2017 04:22:37 PM (7 years ago)
Author:
obenland
Message:

PLugins: Clean up formatting with phpcbf

File:
1 edited

Legend:

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

    r5446 r6287  
    1515if ( empty( $opts ) && $argc == 2 ) {
    1616    $opts['plugin'] = $argv[1];
    17     $argv[1] = '--plugin ' . $argv[1];
     17    $argv[1]        = '--plugin ' . $argv[1];
    1818}
    1919if ( empty( $opts['url'] ) ) {
     
    4242$_SERVER['REQUEST_URI'] = parse_url( $opts['url'], PHP_URL_PATH );
    4343
    44 include rtrim( $opts['abspath'], '/' ) . '/wp-load.php';
     44require rtrim( $opts['abspath'], '/' ) . '/wp-load.php';
    4545
    4646if ( ! class_exists( '\WordPressdotorg\Plugin_Directory\Plugin_Directory' ) ) {
     
    4848    if ( defined( 'WPORG_PLUGIN_DIRECTORY_BLOGID' ) ) {
    4949        fwrite( STDERR, "Run the following command instead:\n" );
    50         fwrite( STDERR, "\tphp " . implode( ' ', $argv ) . " --url " . get_site_url( WPORG_PLUGIN_DIRECTORY_BLOGID, '/' ) . "\n" );
     50        fwrite( STDERR, "\tphp " . implode( ' ', $argv ) . ' --url ' . get_site_url( WPORG_PLUGIN_DIRECTORY_BLOGID, '/' ) . "\n" );
    5151    }
    5252    die();
Note: See TracChangeset for help on using the changeset viewer.