WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. mauriciomesquita
    Member
    Posted 3 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

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

  2. mauriciomesquita
    Member
    Posted 3 years ago #

    I'm using WordPress 3.0.4 and Restrict Categories 1.6.1

  3. Matthew Muro
    Visual Form Builder Pro
    Plugin Author

    Posted 3 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
    Member
    Posted 3 years ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic