Skip to content

Commit c94e23f

Browse files
Slightly different approach to generating the path
1 parent 4a1c2c7 commit c94e23f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Plugin_Command.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ protected function get_item_list() {
748748
];
749749

750750
if ( $this->check_headers['tested_up_to'] ) {
751-
$plugin_readme = normalize_path( WP_PLUGIN_DIR . '/' . $name . '/readme.txt' );
751+
$plugin_readme = normalize_path( dirname( WP_PLUGIN_DIR . '/' . $file ) . '/readme.txt' );
752752

753753
if ( file_exists( $plugin_readme ) && is_readable( $plugin_readme ) ) {
754754
$readme_obj = new SplFileObject( $plugin_readme );

0 commit comments

Comments
 (0)