Changeset 6287 for sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/bin/import-plugin-to-glotpress.php
- Timestamp:
- 12/19/2017 04:22:37 PM (7 years ago)
- 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 15 15 if ( empty( $opts ) && $argc == 2 ) { 16 16 $opts['plugin'] = $argv[1]; 17 $argv[1] = '--plugin ' . $argv[1];17 $argv[1] = '--plugin ' . $argv[1]; 18 18 } 19 19 if ( empty( $opts['url'] ) ) { … … 42 42 $_SERVER['REQUEST_URI'] = parse_url( $opts['url'], PHP_URL_PATH ); 43 43 44 include rtrim( $opts['abspath'], '/' ) . '/wp-load.php';44 require rtrim( $opts['abspath'], '/' ) . '/wp-load.php'; 45 45 46 46 if ( ! class_exists( '\WordPressdotorg\Plugin_Directory\Plugin_Directory' ) ) { … … 48 48 if ( defined( 'WPORG_PLUGIN_DIRECTORY_BLOGID' ) ) { 49 49 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" ); 51 51 } 52 52 die();
Note: See TracChangeset
for help on using the changeset viewer.