What error logs can I check to see why plugin updates are failing?

I’ve updated to wordpress 4.7.x. I don’t know why, but after doing so, I no longer have the ability to upload plugins (it keeps asking for FTP access. We’ve never used FTP always SFTP), and I can no longer update existing plugins. I get this error: Update Failed: Could not create directory. wp-config.php indeed was … Read more

Can’t edit media details in new role

I’ve created a new user role called “writer” and assigned him the following capabilities. read, edit_post , upload_files, edit_posts, edit_published_posts, publish_posts, level_0, level_1, level_2` The user can upload images but cannot edit the media details like title, caption etc. The text boxes are read only. Am I missing a permission in the user role? Edit: … Read more

Why does One Click Update fail on localhost using FTP with 777 permissions on site files?

I can successfully upload/remove media, add/remove plugins and edit theme files within admin CP. The one thing I can not do in admin CP is a normal one click update from WordPress 3.7.1 to 3.8. Ideas? The error message when I try to run updates: Downloading update from https://wordpress.org/wordpress-3.8-new-bundled.zip… Unpacking the update… The update cannot … Read more

Which WordPress scripts need to be executable for a fresh installation?

For security reasons I need to block access to scripts that will not be executed on a fresh WordPress installation. Example: /index.php –> needs to be executable /wp-includes/cache.php –> should not be executed (it’s included in other files) Anyone has information on which files are included and which actually need to be executable? I want … Read more

How to check if a role has a specific capability

In a plugin, i create a dedicated user role along with some capabilities. These capabilities also need to be assigned to other roles, such as editor and admin. As the addition of roles and capabilities involves database writes, these operations are commonly considered “expensive” and recommended to be performed only in the plugin activation hook. … Read more

Can I create users that have access to *some* other users posts instead of all other users posts?

I’ve been using basic user rights functionality on a multi-user WP site for a while and its worked out great, having most user accounts just have access to their own posts but a few “editors” having access to everyone’s posts. This was assisted by the wp-front plugin that allows you to easily define user roles. … Read more