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

  1. MarjoriesDaughter
    Posted 2 years 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.


  2. keendev
    Posted 2 years 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:

    $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
    Posted 1 year 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

  • Restrict Categories
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.