You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Plugin picks README.md over readme.txt when both are present #258
When the plugin has both a README.md and a readme.txt in the root directory the README.md is used preferentially as it is the first item in the array from plugin-check.php lines 86-91
if ( ! $args['readme'] ) {
$readme_files = preg_grep( '!(^|/)readme.(txt|md)$!i', $top_level_files );
if ( $readme_files ) {
$args['readme'] = new Readme_Parser( array_shift( $readme_files ) );
}
}
Personally, I have a README.md for GitHub and a readme.txt for the plugin repo.
It would make the most sense to use the readme.txt if it exists and fallback to README.md.
Steps to Reproduce
Use the WordPress Beta Tester plugin as an example.
BTW the Environment info comes from the Test Reports plugin, which is still awaiting review. 😉
Activity
Include the chagelog for #258
bordoni commentedon Sep 21, 2023
Resolved @afragen. Will ship a fix with
0.2.1