WordPress.org

Ready to get started?Download WordPress

Forums

Restrict Categories
Administrators can't see Categories (3 posts)

  1. MarjoriesDaughter
    Member
    Posted 1 year ago #

    Since the upgrade to 3.5 and 3.5.1, Administrators can no longer access any categories. Not in the Category list, not to assign a Post or Page to a Category. Deactivating Restrict Categories allows these items to work.

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

  2. keendev
    Member
    Posted 1 year ago #

    Hi guys,

    I have seemed to fix the issue please do the following and let me know if it works for you.

    I believe the issue stems from the following:

    If you delete a category it remains in the cached options of categories a user can post to. Now since Restrict Categories will loop through all these categories and try find the ID a deleted category will return no id cause the query to mess up. This could be something inside 3.5 causing the issue.

    So do the following:

    Find:
    $this->cat_list .= $term_id . ',';

    Above Add:
    if ( !empty( $term_id ) )

    You will need to perform this twice. The lines associated with these edits is 461 and 484.

    Please let me know what happens :)

  3. Sanapaino
    Member
    Posted 9 months ago #

    This may be old news already but keendev's solution seems to be working.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.