From 6d398c611aeb0f11b8bb43feacd7cca5d7d9a88f Mon Sep 17 00:00:00 2001 From: ann71727 Date: Mon, 23 Jan 2017 02:44:34 +0800 Subject: [PATCH] Update index.php https://srd.wordpress.org/plugins/wp-super-cache/ ( Can't auto install the plugin ) php remove last slash from url https://srd.wordpress.org/plugins/wp-super-cache ( It is Work ) --- wp-quick-install/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-quick-install/index.php b/wp-quick-install/index.php index 89a0a9f..9bec9b3 100755 --- a/wp-quick-install/index.php +++ b/wp-quick-install/index.php @@ -476,7 +476,7 @@ if ( ! empty( $_POST['plugins'] ) ) { $plugins = explode( ";", $_POST['plugins'] ); - $plugins = array_map( 'trim' , $plugins ); + foreach($plugins as $k=>$v)$plugins[$k] = rtrim(trim($v),'/'); $plugins_dir = $directory . 'wp-content/plugins/'; foreach ( $plugins as $plugin ) {