Restrict Categories
[resolved] problem uploading images in posts (4 posts)

  1. mauriciomesquita
    Posted 5 years ago #

    the plugin is interfering in posts. There was a problem uploading images

    the gallery is not displayed to insert image in post. Only when the plugin is disabled ...

    thanks for help


  2. mauriciomesquita
    Posted 5 years ago #

    I'm using WordPress 3.0.4 and Restrict Categories 1.6.1

  3. Matthew Muro
    Plugin Author

    Posted 5 years ago #

    Thanks for reporting this behavior.

    For a temporary fix until I push out an official update, replace lines 486-490 with the following code:

    /* Only restrict the query for posts_types that aren't attachments */
    		if ( $query->get( 'post_type' ) != 'attachment' ){
    			/* Make sure the posts are removed by default or if filter category is ran */
    			if ( ! isset( $_REQUEST['cat']) )
    				$query->set( 'category__in', $cat_list_array );
    			elseif( isset( $_REQUEST['cat'] ) && $_REQUEST['cat'] == '0' )
    				$query->set( 'category__in', $cat_list_array );

    Let me know if that works for you.

  4. mauriciomesquita
    Posted 5 years ago #

    Now it's all right! The plugin is very useful

Topic Closed

This topic has been closed to new replies.

About this Plugin

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

About this Topic