[wp-trac] [WordPress Trac] #16283: post_exists() enhancement - don't include revisions (was: post_exists() enhacement - don't include revisions)

WordPress Trac wp-trac at lists.automattic.com
Wed Jan 26 05:21:01 UTC 2011


#16283: post_exists() enhancement - don't include revisions
----------------------------+------------------------------
 Reporter:  durin           |       Owner:
     Type:  enhancement     |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  3.1
 Severity:  normal          |  Resolution:
 Keywords:  dev-feedback    |
----------------------------+------------------------------
Changes (by solarissmoke):

 * keywords:  post_exists => dev-feedback


Comment:

 The most common use case for `post_exists` is, I'm guessing, to avoid
 title/content conflicts between published posts. On this basis I think the
 default behaviour should be to ignore old revisions, i.e., `post_status !=
 'revision'`, and maybe add an argument to allow override.

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


More information about the wp-trac mailing list