The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Check if there is a file called maintenance.flag in your magento root. If so Delete it.
When Magento is performing certain tasks it temporarily creates this file. Magento checks for its existence and if it’s there will send users to the page you described.
It’s supposed to automatically delete this file when done processing whatever task it was doing, but I’ve experienced occasions where something went wrong and it failed to delete it.
过去判断登录用户的角色我喜欢用current_user_can(),比如判断当前用户是否是作者用current_user_can('author'),记得WordPress官方文档中给的例子也是这样用,不过今天看了一下文档,貌似用法变了,传递角色作为参数不再可靠,正确的用法是传递$capability,那么该如何判断用户角色呢? 注:以下内容在WP 3.4+上测试通过 current_user_can()的正确用法 current_user_can()文档中有一句话要注意一下 Do not pass…