Plugin Directory

Changeset 1671805


Ignore:
Timestamp:
06/06/2017 01:28:51 PM (9 years ago)
Author:
thrivehive
Message:

fixing bug with scheduling

Location:
thrivehive/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • thrivehive/trunk/controllers/core.php

    r1659430 r1671805  
    8585    {
    8686      $query = "
    87           SELECT DISTINCT p.ID, p.post_title, p.post_type, p.post_status
     87          SELECT DISTINCT p.ID, p.post_title, p.post_type, p.post_status, p.post_date
    8888          FROM $wpdb->posts p
    8989          LEFT JOIN $wpdb->postmeta m ON p.ID = m.post_id AND m.meta_key LIKE 'th_extra_type'
     
    107107    {
    108108        $query = "
    109           SELECT p.ID, p.post_title, p.post_type, p.post_status
     109          SELECT p.ID, p.post_title, p.post_type, p.post_status, p.post_date
    110110          FROM $wpdb->posts p
    111111          JOIN $wpdb->postmeta m ON p.ID = m.post_id
     
    141141      $retpost['id'] = $retpost['ID'];
    142142      $retpost['pendingComments'] = $comments;
     143      $retpost['date'] = $retpost['post_date'];
    143144      unset($retpost['post_status']);
    144145      unset($retpost['post_type']);
  • thrivehive/trunk/models/post.php

    r1652990 r1671805  
    130130    if (!empty($values['datetime'])) {
    131131      $wp_values['post_date'] = $values['datetime'];
     132      $wp_values['post_date_gmt'] = $values['datetime'];
    132133    }
    133134
     
    233234    $this->set_content_value();
    234235    $this->set_value('excerpt', '');
    235     $this->set_value('date', get_the_time($date_format));
     236    $this->set_value('date', get_the_time($date_format, $this->id));
    236237    $this->set_value('modified', date($date_format, strtotime($wp_post->post_modified)));
    237238    $this->set_categories_value();
  • thrivehive/trunk/thrivehive.php

    r1659430 r1671805  
    55   *Plugin URI: http://thrivehive.com
    66   *Description: A plugin to include ThriveHive's tracking code
    7    *Version: 1.132
     7   *Version: 1.133
    88   *Author: ThriveHive
    99   *Author URI: http://thrivehive.com
Note: See TracChangeset for help on using the changeset viewer.