[wp-trac] [WordPress Trac] #11889: Create post with special post_status when viewing Add New screen

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 13 22:50:58 UTC 2010


#11889: Create post with special post_status when viewing Add New screen
----------------------------+-----------------------------------------------
 Reporter:  markjaquith     |       Owner:  markjaquith
     Type:  task (blessed)  |      Status:  accepted   
 Priority:  high            |   Milestone:  3.0        
Component:  Autosave        |     Version:  3.0        
 Severity:  normal          |    Keywords:             
----------------------------+-----------------------------------------------

Comment(by Denis-de-Bernardy):

 Replying to [comment:3 westi]:
 > I'm not sure how using s UUID in the post_guid field affects this
 solution and how it improves on using the post_id.

 It improves over a post_id in that a universally unique ID is ''designed''
 for this kind of stuff. It allows you to dynamically create a number that
 is essentially guaranteed to be unique. You can then do things such as:

  - change a post's permalink, and re-use its old permalink, without
 confusing feed readers and the like
  - assign a UUID to a draft, knowing that it's guaranteed to be unique --
 you can then query the posts table on the fly to know if it has been
 created by a separate process or not.
  - have two completely separate databases whose data you can merge later
 on, without any risk of conflict (I can't possibly be the only one who
 gave thoughts to creating an offline editor for WP, can I?)

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/11889#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list