Skip to content

Commit 176cde5

Browse files
fix: correct SVN URL path for WordPress.org theme versions (fix: #25) (#33)
Themes should reference versions directly (e.g., 1.4.5/) not through a tags subdirectory (e.g., tags/1.4.5/). This matches the actual SVN structure at https://themes.svn.wordpress.org/ The fix applies the correct reference format only for themes, maintaining the existing tags/ structure for plugins, which is correct for those packages.
1 parent 29fcb13 commit 176cde5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/repository/composer.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ func ComposerVersion(pkgType, slug, ver, downloadURL string, meta PackageMeta) m
2424
}
2525

2626
ref := fmt.Sprintf("tags/%s", ver)
27+
if pkgType == "theme" {
28+
ref = ver
29+
}
2730
if ver == "dev-trunk" {
2831
ref = "trunk"
2932
}

0 commit comments

Comments
 (0)