🔞 ADULT: Changeset/ - Full Archive

Changeset 2779859


Ignore:
Timestamp:
09/04/2022 11:33:28 PM (3 years ago)
Author:
BinaryMoon
Message:
  • Fix undefined value error.
Location:
front-page-category/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • front-page-category/trunk/front-page-category.php

    r2686234 r2779859  
    22/**
    33 * Plugin Name: Front Page Category
    4  * Version: 3.3.3
     4 * Version: 3.3.4
    55 * Plugin URI: http://wordpress.org/plugins/front-page-category/
    66 * Description: Select the categories that display on the front page.
     
    257257
    258258        /**
     259         * If it's an empty array then stop processing since we can't be sure of
     260         * the post type.
     261         */
     262        if ( is_array( $query->query['post_type'] ) && is_empty( $query->query['post_type'] ) ) {
     263            return true;
     264        }
     265
     266        /**
    259267         * If it's an array of more than one post type, and the post type is not
    260268         * post, then we can assume something more complex is going on and stop
     
    269277         * checked the length above.
    270278         *
    271          * If the value is not post then we don't want to filter it.
     279         * If the value is not a post then we don't want to filter it.
    272280         */
    273281        if ( is_array( $query->query['post_type'] ) && 'post' !== $query->query['post_type'][0] ) {
  • front-page-category/trunk/readme.txt

    r2686234 r2779859  
    2323
    2424== Changelog ==
     25
     26= 3.3.4 - 5th September 2022 =
     27* Fix undefined value error.
    2528
    2629= 3.3.3 - 28th February 2022 =
Note: See TracChangeset for help on using the changeset viewer.