Use trailingslashit

This commit is contained in:
Claudio Sanches 2019-07-15 12:57:16 -03:00
parent c8812a205b
commit 73f27d030b
1 changed files with 1 additions and 1 deletions

View File

@ -525,7 +525,7 @@ class WC_WCCOM_Site_Installer {
*/
private static function get_wporg_plugin_main_file( $dir ) {
// Ensure that exact dir name is used.
$dir .= '/';
$dir = trailingslashit( $dir );
if ( ! function_exists( 'get_plugins' ) ) {
require_once ABSPATH . 'wp-admin/includes/plugin.php';