Index: /sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/inc/cli/class-make-core-pot.php
===================================================================
--- /sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/inc/cli/class-make-core-pot.php (revision 8639)
+++ /sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/inc/cli/class-make-core-pot.php (revision 8640)
@@ -52,6 +52,4 @@
WP_CLI::error( 'Unsupported WordPress version. Use makepot.php.' );
}
-
- $extract_js = version_compare( $wp_version, '5.0-beta', '>=' );
$dry_run = Utils\get_flag_value( $assoc_args, 'dry-run', false );
@@ -114,5 +112,5 @@
$command .= ' --ignore-domain';
- if ( ! $extract_js ) {
+ if ( version_compare( $wp_version, '5.0-beta', '<' ) ) {
$command .= ' --skip-js';
}
@@ -161,7 +159,10 @@
$command .= ' --headers=' . escapeshellarg( $headers );
$command .= ' --file-comment=' . escapeshellarg( $file_comment );
- $command .= ' --skip-js'; // TODO: No use of wp.i18n, yet.
- $command .= ' --skip-audit';
- $command .= ' --ignore-domain';
+ $command .= ' --skip-audit';
+ $command .= ' --ignore-domain';
+
+ if ( version_compare( $wp_version, '5.2-beta', '<' ) ) {
+ $command .= ' --skip-js';
+ }
WP_CLI::line( $command );