Plugin Directory

Changeset 672824


Ignore:
Timestamp:
02/25/2013 04:41:53 AM (13 years ago)
Author:
Parakoos
Message:

v2.9: Fixed a bug where using both include_category/tag and include_pages didn't work.

Location:
image-wall/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • image-wall/trunk/image-wall.php

    r666028 r672824  
    44    Plugin URI: http://www.themodernnomad.com/image-wall-plugin/#utm_campaign=Image_Wall&utm_source=wordpress&utm_medium=website&utm_content=plugin_link
    55    Description: Browse posts/pages by their images, displayed randomly on an infinitely scrollable page. The images link back to the posts where they are attached.
    6     Version: 2.8
     6    Version: 2.9
    77    Author: Gustav Andersson
    88    Author URI: http://www.themodernnomad.com/about/#utm_campaign=Image_Wall&utm_source=wordpress&utm_medium=website&utm_content=author_link
     
    620620        if ( !$parent_ID || get_post_field('post_status', $parent_ID ) != 'publish' ) continue;
    621621        if ( ! $include_pages && get_post_type( $parent_ID ) == 'page' ) continue;
    622         if ( !empty($include_categories) && ! in_category( $include_categories, $parent_ID ) ) continue;
    623         if ( !empty($exclude_categories ) &&   in_category( $exclude_categories , $parent_ID ) ) continue;
    624         if ( !empty($include_tags) && ! has_tag( $include_tags, $parent_ID ) ) continue;
    625         if ( !empty($exclude_tags) &&   has_tag( $exclude_tags, $parent_ID ) ) continue;
    626 
     622        if ( get_post_type( $parent_ID ) != 'page' ) {
     623            if ( !empty($include_categories) && ! in_category( $include_categories, $parent_ID ) ) continue;
     624            if ( !empty($exclude_categories) &&   in_category( $exclude_categories, $parent_ID ) ) continue;
     625            if ( !empty($include_tags) && ! has_tag( $include_tags, $parent_ID ) ) continue;
     626            if ( !empty($exclude_tags) &&   has_tag( $exclude_tags, $parent_ID ) ) continue;
     627        }
     628       
    627629        // We need to find the best available image size to use.
    628630        // That is the image size that will span the most columns (legally) while using the fewest pixels.
  • image-wall/trunk/readme.txt

    r666028 r672824  
    44Requires at least: 3.5
    55Tested up to: 3.5.1
    6 Stable tag: 2.8
     6Stable tag: 2.9
    77Donate link: http://www.themodernnomad.com/#utm_campaign=Image_Wall&utm_source=wordpress&utm_medium=website&utm_content=donation
    88License: GPLv2 or later
     
    8585= 2.8 =
    8686* Setting back the box-sizing CSS setting of the container to content-box (in case a theme has set this to border-box)
     87
     88= 2.9 =
     89* Fixed a bug where using both include_category/tag and include_pages didn't work.
Note: See TracChangeset for help on using the changeset viewer.