This commit is contained in:
Joshua T Flowers 2020-09-23 16:10:05 +03:00 committed by GitHub
parent 12ffd61133
commit 6ea8752e30
1 changed files with 2 additions and 2 deletions

View File

@ -25,8 +25,8 @@ function replace_version( $filename, $package_json ) {
if ( stripos( $line, 'Stable tag: ' ) !== false ) {
$line = "Stable tag: {$package_json->version}\n";
}
if ( stripos( $line, '"name": "woocommerce/woocommerce-admin",' ) !== false ) {
$line .= "\t\"version\": \"{$package_json->version}\",\n";
if ( stripos( $line, '"version":' ) !== false ) {
$line = "\t\"version\": \"{$package_json->version}\",\n";
}
$lines[] = $line;
}