WordPress.org

Ready to get started?Download WordPress

Forums

Allow Categories
Admin access broken in WordPress 3.3 (4 posts)

  1. Luke Rumley
    Member
    Posted 2 years ago #

    I am suspecting function allow_notAdmin() but I haven't figured it out exactly yet.

    http://wordpress.org/extend/plugins/allow-categories/

  2. Luke Rumley
    Member
    Posted 2 years ago #

    OK, I am able to edit as an admin again. Here is what I changed (right or wrong):

    function allow_notAdmin() {
    		global $userdata;
    		get_currentuserinfo();
    		if (Allow_Category::allow_loggedIn()) {
    			// OLD: return ($userdata->user_level < 10);
    			// NEW:
    			return !is_super_admin($userdata->ID);
    		} else {
    			return true;
    		}
    	}
  3. robgundling
    Member
    Posted 1 year ago #

    Luke! Awesome addition to the community, man. Confirming that this fix works great in WP3.2/3.3.

    Thanks for posting...

  4. Luke Rumley
    Member
    Posted 1 year ago #

    Glad to, go open source!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic