Changeset 6635

Show
Ignore:
Timestamp:
01/18/08 07:59:09 (9 months ago)
Author:
westi
Message:

Ensure APP clients can update timestamps on publish. Fixes #5680 props tvachon.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/wp-app.php

    r6551 r6635  
    261261        $post_content = $entry->content[1]; 
    262262        $post_excerpt = $entry->summary[1]; 
    263         $pubtimes = $this->get_publish_time($entry); 
     263        $pubtimes = $this->get_publish_time($entry->published); 
    264264        $post_date = $pubtimes[0]; 
    265265        $post_date_gmt = $pubtimes[1]; 
     
    333333        $post_content = $parsed->content[1]; 
    334334        $post_excerpt = $parsed->summary[1]; 
    335         $pubtimes = $this->get_publish_time($entry); 
     335        $pubtimes = $this->get_publish_time($parsed->published); 
    336336        $post_date = $pubtimes[0]; 
    337337        $post_date_gmt = $pubtimes[1]; 
     
    579579 
    580580        $ID = $entry['ID']; 
    581         $pubtimes = $this->get_publish_time($entry); 
     581        $pubtimes = $this->get_publish_time($entry->published); 
    582582        $post_date = $pubtimes[0]; 
    583583        $post_date_gmt = $pubtimes[1]; 
     
    10991099    } 
    11001100 
    1101     function get_publish_time($entry) { 
    1102  
    1103         $pubtime = $this->rfc3339_str2time($entry->published); 
     1101    function get_publish_time($published) { 
     1102 
     1103        $pubtime = $this->rfc3339_str2time($published); 
    11041104 
    11051105        if(!$pubtime) {