Merge pull request #19987 from woocommerce/fix/plugin-install-get-proper-plugin-filename
Plugin installer: fix extracting filename from path
This commit is contained in:
commit
9e1b8245be
|
@ -1087,7 +1087,8 @@ CREATE TABLE {$wpdb->prefix}woocommerce_termmeta (
|
||||||
*/
|
*/
|
||||||
private static function associate_plugin_file( $plugins, $key ) {
|
private static function associate_plugin_file( $plugins, $key ) {
|
||||||
$path = explode( '/', $key );
|
$path = explode( '/', $key );
|
||||||
$plugins[ $path[1] ] = $key;
|
$filename = end( $path );
|
||||||
|
$plugins[ $filename ] = $key;
|
||||||
return $plugins;
|
return $plugins;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue