最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

functions - Is checking whether the blog is installed necessary?

programmeradmin2浏览0评论

My Wordpress site has become kinda slow and unresponsive, so I am trying what can I do to speed it up by eliminating unnecessary database queries and other things. I stumbled across suggestion found at where it says that the function is_blog_installed is useless on running site. The comments on article are from 2009. Can we safely remove it without breaking anything now or in the future?

 1. open up wp-includes/functions.php 
 2. find the function is_blog_installed() 
 3. add return true; as the first line of the function

My Wordpress site has become kinda slow and unresponsive, so I am trying what can I do to speed it up by eliminating unnecessary database queries and other things. I stumbled across suggestion found at https://yoast/wordpress-performance-optimization where it says that the function is_blog_installed is useless on running site. https://codex.wordpress/Function_Reference/is_blog_installed The comments on article are from 2009. Can we safely remove it without breaking anything now or in the future?

 1. open up wp-includes/functions.php 
 2. find the function is_blog_installed() 
 3. add return true; as the first line of the function
Share Improve this question edited Jan 26, 2020 at 19:48 PauloBoaventura 1327 bronze badges asked Jan 5, 2016 at 14:47 Ivan TopićIvan Topić 5211 gold badge6 silver badges20 bronze badges 1
  • 1 Don't edit core. Anything and everything you write in core will be overwritten on update. Your best bet is to look into caching and upgrading your server to something better. – Howdy_McGee Commented Jan 5, 2016 at 14:50
Add a comment  | 

1 Answer 1

Reset to default 2

You Could, but I would never ever mess with core files.

Apart from that I do not believe that the is_blog_installed() function causes your site to be unresponsive. Try disabling all plugins first, and set the theme to one of the default themes. Updating your site, plugins and themes could help you as well. Try to narrow your problem down. I suspect it's either in a theme or plugin.

发布评论

评论列表(0)

  1. 暂无评论