1
0
Fork 0
mirror of https://github.com/yunluo/gdk.git synced 2024-05-04 23:43:23 +02:00

优化插件更新

This commit is contained in:
云落 2020-03-27 00:08:29 +08:00
parent 24ab10892e
commit b9a43289c3

View file

@ -45,7 +45,7 @@ add_action('wp_ajax_get_new_version', 'gdk_ajax_get_update');
function gdk_ajax_install_update()
{
$url = 'http://a.gitcafe.net/gdk.zip?v=' . date("His");
unzip_url($url, WP_PLUGIN_DIR);
unzip_url($url, GDK_ROOT_PATH);
exit(1);
}