Plugin Directory

Changeset 2754088


Ignore:
Timestamp:
07/09/2022 06:56:27 PM (4 years ago)
Author:
vladimir.s
Message:

Terms descriptions v.3.4.3. Bug fixes: variable type check added

Location:
terms-descriptions/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • terms-descriptions/trunk/includes/parsers/td_parser.php

    r2720242 r2754088  
    121121    protected function is_current_post( $id ) {
    122122        global $post;
    123         return ( $post->ID === ( int )$id ) ? true : false;
     123        return ( is_object( $post ) && property_exists( $post, 'ID' ) && $post->ID === ( int )$id ) ? true : false;
    124124    }
    125125
  • terms-descriptions/trunk/readme.txt

    r2738624 r2754088  
    7979== Changelog ==
    8080
     81= 3.4.3 =
     82
     83* Bug fixes: variable type check added (https://github.com/vladimir-s/terms-descriptions/issues/5)
     84
    8185= 3.4.2 =
    8286
  • terms-descriptions/trunk/terms-descriptions.php

    r2738624 r2754088  
    44Plugin URI: https://simplecoding.org/plagin-wordpress-terms-descriptions
    55Description: This plugin allows you to create list of terms and assign links to them. Plugin automatically replaces terms occurrences in your posts with appropriate links. You can control the number of replacements. After activation you can create terms list on plugin administration page (Tools -> Terms Descriptions).
    6 Version: 3.4.2
     6Version: 3.4.3
    77Author: Vladimir Statsenko
    88Author URI: https://simplecoding.org
Note: See TracChangeset for help on using the changeset viewer.