Skip to content

Commit 45da009

Browse files
committed
properly format readme tags
1 parent 6b31578 commit 45da009

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

CHANGES.md

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#### [unreleased]
2+
* update to correct format of readme tags
23

34
#### 12.14.0 / 2025-02-26
45
* make sure proper release asset headers are added even if access token not set

git-updater.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
* Plugin Name: Git Updater
1313
* Plugin URI: https://git-updater.com
1414
* Description: A plugin to automatically update GitHub hosted plugins, themes, and language packs. Additional API plugins available for Bitbucket, GitLab, Gitea, and Gist.
15-
* Version: 12.14.0
15+
* Version: 12.14.0.1
1616
* Author: Andy Fragen
1717
* License: MIT
1818
* Domain Path: /languages

src/Git_Updater/API/API.php

+9
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,15 @@ public function set_readme_info( $readme ) {
588588
} else {
589589
$this->type->upgrade_notice = $readme['upgrade_notice'];
590590
}
591+
592+
// Properly format tags.
593+
if ( ! empty( $readme['tags'] ) ) {
594+
foreach ( $readme['tags'] as $key => $tag ) {
595+
unset( $readme['tags'][ $key ] );
596+
$key = strtolower( str_replace( ' ', '-', $tag ) );
597+
$readme['tags'][ $key ] = $tag;
598+
}
599+
}
591600
$this->type->readme_tags = $readme['tags'];
592601

593602
return true;

0 commit comments

Comments
 (0)