Plugin Directory

Changeset 1959864


Ignore:
Timestamp:
10/20/2018 05:32:43 PM (7 years ago)
Author:
dogano
Message:

bug fix in array operation

Location:
wp-open-last-modified/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • wp-open-last-modified/trunk/open_last_modified.php

    r1943232 r1959864  
    44 * Plugin URI: www.dogan-ucar.de/wp-open-last-modified
    55 * Description: WP Last Modified adds the ‚last_modified_date‘ shortcut to your WordPress installation. This shortcut shows the last timestamp of your post/page. Simply use the „format“ attribute for custom date formats (it uses PHP’s date() function). The "description" attribute enables a brief description which changes has been made with the last modification. This plugin shows also the actual revision of your post/page. You can customize the text which will be shown under each post/page under settings -> WP Last Modified Settings.
    6  * Version: 1.4.0
     6 * Version: 1.4.1
    77 * Author: Dogan Ucar
    88 * Author URI: www.dogan-ucar.de
     
    9191    $text  = $option->read( 'wpolm_text' );
    9292    $array = json_decode( $ids );
    93     if ( in_array( $post->ID, $array ) ) {
     93    if ( is_array( $array ) || in_array( $post->ID, $array ) ) {
    9494        return "";
    9595    }
  • wp-open-last-modified/trunk/readme.txt

    r1943232 r1959864  
    3939
    4040== Changelog ==
     41= 1.4.1 =
     42* bug fix
     43
    4144= 1.4.0 =
    4245* excluding posts/pages
Note: See TracChangeset for help on using the changeset viewer.