小编mgr*_*tnz的帖子

错误:文件'wp-config.php'已存在

我点击了我的WordPress网站管理仪表板中的"更新WordPress"链接,我收到此错误:

"The file 'wp-config.php' already exists. If you need to reset any of the 
configuration items in this file, please delete it first. You may try installing now."
Run Code Online (Sandbox Code Playgroud)

当我尝试单击"立即安装"链接时,似乎WordPress正在安装新的.我想保留我的WordPress安装的所有内容.

我试图更改wp-config.php文件的名称但是没有做任何事情.

php wordpress updates

16
推荐指数
4
解决办法
3万
查看次数

jQuery datepicker在前端工作,但wordpress管理员破折号无效

我有排队jQuery Date Picker的当前代码:

function register_my_scripts()
{
    wp_register_script('scripts', plugins_url('/js/scripts.js', __FILE__));
    wp_enqueue_script('scripts');
    wp_enqueue_script('jquery-ui-datepicker');
}

function register_my_styles()
{
    wp_enqueue_style('e2b-admin-ui-css','http://ajax.googleapis.com/ajax/libs/jqueryui/1.9.0/themes/base/jquery-ui.css',false,"1.9.0",false);
}

add_action('wp_enqueue_scripts', 'register_my_scripts');
add_action('wp_enqueue_scripts', 'register_my_styles'); 
Run Code Online (Sandbox Code Playgroud)

在scripts.js中的jQuery函数:

jQuery(document).ready(function(){
    jQuery('.datepicker').datepicker({
        dateFormat : 'D, m/d/yy'
    });
});
Run Code Online (Sandbox Code Playgroud)

和html字段:

<input type="text" class="datepicker"/>
Run Code Online (Sandbox Code Playgroud)

这段代码在前端工作正常,但是由于某种原因在后端没有任何作用。我只需要它在后端工作。

这里发生了什么?

javascript wordpress jquery datepicker

5
推荐指数
1
解决办法
457
查看次数

标签 统计

wordpress ×2

datepicker ×1

javascript ×1

jquery ×1

php ×1

updates ×1