Skip to content

Prefer path-based plugin slug#12

Merged
namithj merged 1 commit into
mainfrom
slug-detection-order
May 20, 2026
Merged

Prefer path-based plugin slug#12
namithj merged 1 commit into
mainfrom
slug-detection-order

Conversation

@namithj
Copy link
Copy Markdown
Member

@namithj namithj commented May 20, 2026

Change slug resolution to prefer the plugin directory name, then the plugin file name, and only then fall back to the header text_domain. Added unit tests covering directory/file/text-domain precedence and helper methods to create/remove temporary plugin directories for these tests.

Change slug resolution to prefer the plugin directory name, then the plugin file name, and only then fall back to the header text_domain.
Added unit tests covering directory/file/text-domain precedence and helper methods to create/remove temporary plugin directories for these tests.
@namithj namithj requested a review from chuckadams May 20, 2026 06:03
@namithj
Copy link
Copy Markdown
Member Author

namithj commented May 20, 2026

Fixes fairpm/fair-plugin#502

@namithj namithj merged commit 376b42c into main May 20, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant