Plugin Directory

Changeset 897365


Ignore:
Timestamp:
04/18/2014 01:34:42 PM (12 years ago)
Author:
Strunker
Message:

Default wordpress date for new posts used

File:
1 edited

Legend:

Unmodified
Added
Removed
  • polizeipresse/trunk/Polizeipresse.php

    r792494 r897365  
    344344    $post_title = $story->title;
    345345
    346     // Publish date
    347     $post_date = (empty($story->published) ? time() : strtotime($story->published));
    348 
    349346    // Categorie. Use special category for office or default if none is defined.
    350347    $post_category = polizeipresse_get_option(POLIZEIPRESSE_OFFICE_CATEGORY_ID . $office);
     
    365362        'post_content' => $post_content,
    366363        'post_status' => $post_status,
    367         'post_date' => date('Y-m-d H:i:s', $post_date),
    368364        'post_author' => $post_user,
    369365        'post_type' => 'post',
Note: See TracChangeset for help on using the changeset viewer.