Plugin Directory

Changeset 647448


Ignore:
Timestamp:
01/03/2013 01:53:03 PM (13 years ago)
Author:
jascott
Message:

Fixed null ID bug on comments for non-existing posts

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kickpress/trunk/kickpress-api.php

    r647222 r647448  
    28652865            );
    28662866        } else {
    2867             $bookmark->id = kickpress_insert_bookmark( $bookmark->post_id );
     2867            $bookmark->id = (int) kickpress_insert_bookmark( $bookmark->post_id );
    28682868           
    28692869            $this->action_results['messages']['bookmarks'][] = 'Bookmark Created';
     
    28942894           
    28952895            // using low-level form to force date
    2896             $note->id = kickpress_insert_private_comment( $note->post_id, array(
     2896            $note->id = (int) kickpress_insert_private_comment( $note->post_id, array(
    28972897                'comment_date'    => $date,
    28982898                'comment_title'   => $note->title,
Note: See TracChangeset for help on using the changeset viewer.