内容的栏目 * @param int $category 0列表 1频道 2单页 3外链 * @return array */ function category_list($forumlist, $model = 0, $display = 0, $category = 0) { if (empty($forumlist)) return NULL; static $cache = array(); $key = $model . '-' . $display . '-' . $category; if (isset($cache[$key])) return $cache[$key]; if ($display) { foreach ($forumlist as $k => $val) { if (1 == $val['display'] && 1 == $val['type'] && $val['category'] == $category) { $cache[$key][$k] = $val; } } } else { foreach ($forumlist as $k => $val) { if (1 == $val['type'] && $val['category'] == $category) { $cache[$key][$k] = $val; } } } return empty($cache[$key]) ? NULL : $cache[$key]; } /** * @param $forumlist 所有版块列表 不分模型 * @param int $display 0全部CMS栏目 1在首页和频道显示内容的栏目 * @param int $category 0列表 1频道 2单页 3外链 * @return array */ function category_list_show($forumlist, $display = 0, $category = 0) { if (empty($forumlist)) return NULL; static $cache = array(); $key = $display . '-' . $category; if (isset($cache[$key])) return $cache[$key]; if ($display) { foreach ($forumlist as $k => $val) { if (1 == $val['display'] && 1 == $val['type'] && $val['category'] == $category) { $cache[$key][$k] = $val; } } } else { foreach ($forumlist as $k => $val) { if (1 == $val['type'] && $val['category'] == $category) { $cache[$key][$k] = $val; } } } return empty($cache[$key]) ? NULL : $cache[$key]; } /** * @param $forumlist 所有版块列表 * @return mixed BBS栏目数据(仅列表) 尚未开放bbs频道功能 */ function forum_list($forumlist) { if (empty($forumlist)) return array(); static $cache = array(); if (isset($cache['bbs_forum_list'])) return $cache['bbs_forum_list']; $cache['bbs_forum_list'] = array(); foreach ($forumlist as $_fid => $_forum) { if ($_forum['type']) continue; $cache['bbs_forum_list'][$_fid] = $_forum; } return $cache['bbs_forum_list']; } // 导航显示的版块 function nav_list($forumlist) { if (empty($forumlist)) return NULL; static $cache = array(); if (isset($cache['nav_list'])) return $cache['nav_list']; foreach ($forumlist as $fid => $forum) { if (0 == $forum['nav_display']) { unset($forumlist[$fid]); } } return $cache['nav_list'] = $forumlist; } ?>WP not displaying the latest version upgrade button
最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

WP not displaying the latest version upgrade button

programmeradmin0浏览0评论

I've downloaded the WordPress project from PRODUCTION environment to my LOCAL MACHINE.

I'm not seeing any UPDATE NOW button or links on my LOCAL ENVIRONMENT. Please see the below screenshot

But the UPDATE NOW links are displaying on PRODUCTION environment.Please see the below screenshot

What am I missing. What should I need to get this done ?

I'm using XAMPP.

I've downloaded the WordPress project from PRODUCTION environment to my LOCAL MACHINE.

I'm not seeing any UPDATE NOW button or links on my LOCAL ENVIRONMENT. Please see the below screenshot

But the UPDATE NOW links are displaying on PRODUCTION environment.Please see the below screenshot

What am I missing. What should I need to get this done ?

I'm using XAMPP.

Share Improve this question asked Jun 26, 2015 at 11:45 FeroFero 1011 silver badge2 bronze badges 5
  • check http://locahost/yoursite/readme.html in your local and compare with corresponding readme.html in production. – Karun Commented Jun 26, 2015 at 12:28
  • @@KArun - Both are same – Fero Commented Jun 26, 2015 at 12:32
  • You can try using define( 'WP_AUTO_UPDATE_CORE', false ); in wp-config.php file – Karun Commented Jun 26, 2015 at 12:39
  • @@Karun - Its not working. Any other suggestions plz... – Fero Commented Jun 29, 2015 at 9:17
  • I don't have the points to vote the answer below, but removing the /wp-content/mu-plugins/ worked for me. Now I can update WP. – Scott Harris Commented Feb 1, 2019 at 0:34
Add a comment  | 

2 Answers 2

Reset to default 1

Did you migrate from managed wp to unmanaged? Check this page https://ru.godaddy/help/move-a-managed-wordpress-site-to-an-unmanaged-wordpress-account-19798

In the site directory, locate the /wp-content/mu-plugins/ directory, and delete the gd-system-plugin and gd-system-plugin.php files.

In the wp-config.php file, find and remove the reference to gd-config.php. The sample code below from the wp-config.php file shows the general location of the line to delete.

For anyone stumbling across this post with the same problem, I was able to resolve it by removing the /wp-content/mu-plugins/ directory. This seems to be a leftover Godaddy "helper" which my client previously used to install their website.

发布评论

评论列表(0)

  1. 暂无评论