WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #36595, comment 3


Ignore:
Timestamp:
04/19/2016 05:50:41 PM (5 years ago)
Author:
Latz
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #36595, comment 3

    initial v1  
    33That brings up the question if the parameter is used **anywhere** in core and if it isn't, if it wouldn't be a good idea to remove it from the code.
    44
    5 I have used `wp_insert_post` myself in a plugin and had expected that it would be set to the parameters date, so I didn't even checked it. Now I need to change the code and hack it into the database directly which isn't best practice at all.
     5I have used `wp_insert_post` myself in a plugin and had expected that it would be set to the parameters date, so I didn't even checked it. Now I need to change the code and hack it into the database directly which isn't best practice at all ('''Update:''' Of course I don't have to write it directly into the DB, there's a filter that can be used. Details follow.)
    66
    77Real world case: Import posts from another CMS.