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

优化下载

This commit is contained in:
云落 2020-03-22 00:15:26 +08:00
parent 161a2a7d5c
commit c9da4d2d45
2 changed files with 2 additions and 2 deletions

View file

@ -50,7 +50,7 @@ function gdk_options_page()
?>
<div class="wrap">
<h2>GDK选项 <input type="button" class="add-new-h2 get_new_version" value="检测更新"><input type="button" data-url="" class="add-new-h2 install_new_version" value="安装更新"></h2>
<h2>GDK选项 <input type="button" class="add-new-h2 get_new_version" value="检测更新"><input type="button" style="display:none;" class="add-new-h2 install_new_version" value="安装更新"></h2>
<hr/>
<?php
if (isset($_GET['update'])) {

View file

@ -44,7 +44,7 @@ add_action('wp_ajax_get_new_version', 'gdk_ajax_get_update');
//Ajax安装插件更新
function gdk_ajax_install_update()
{
$url = 'http://a.gitcafe.net/Git-alpha.zip';
$url = 'http://a.gitcafe.net/gdk.zip?v=2020';
unzip_url($url, ABSPATH . 'wp-content/plugins');
exit(1);