Here’s the final fix, thanks to Jesper!
Replace this:
// integrate with editor
if (strstr($_SERVER[’PHP_SELF’], ‘post.php’) ||
with this:
// integrate with editor
if (strstr($_SERVER[’PHP_SELF’], ‘post-new.php’) ||
strstr($_SERVER[’PHP_SELF’], ‘page-new.php’)||
strstr($_SERVER[’PHP_SELF’], ‘post.php’)||
strstr($_SERVER[’PHP_SELF’], ‘page.php’))
I have only admin account. And weird thing is that WordPress is working for a while when installed, but then starts to loose my rights.
It’s not about permissions, because it’s working for some time and then suddenly won’t let me in.