BUG: wp-admin/post.php not honoring menu.php
-
wp-admin/post.php does not check the user levels assigned in menu.php.
I edited menu.php and raised both Write and Edit from 1 to 3. I then created a test user and assigned that test user level 1. I logged out from my admin account, logged in with the new test account. I was granted access to post.php, and was able to post a new entry to the blog.
The “default” case in the post.php case statement has this single check:
if ($user_level > 0) {
I can’t see in post.php where it checks actions against the levels assigned in menu.php. It looks like menu.php is only for constructing the menu links.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘BUG: wp-admin/post.php not honoring menu.php’ is closed to new replies.