Support » Plugin: Restrict Categories » Administrators can't see Categories

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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 🙂

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Administrators can't see Categories’ is closed to new replies.