[wp-trac] [WordPress Trac] #22289: Filter to override WP_POST_REVISIONS (or define it later)

WordPress Trac noreply at wordpress.org
Sat Jan 26 04:26:14 UTC 2013


#22289: Filter to override WP_POST_REVISIONS (or define it later)
-------------------------------------+--------------------
 Reporter:  batmoo                   |       Owner:
     Type:  enhancement              |      Status:  new
 Priority:  normal                   |   Milestone:  3.6
Component:  Revisions                |     Version:  3.4.2
 Severity:  normal                   |  Resolution:
 Keywords:  needs-patch westi-likes  |
-------------------------------------+--------------------

Comment (by ethitter):

 Replying to [comment:7 nacin]:
 > I've thought about this for a long time now. I think this ought to be
 post type specific.

 I've been working on this for a bit now, and post-type-specific revision
 values will be possible, but I haven't made any changes that explicitly do
 so (yet).

 There are a few uses of `WP_POST_REVISIONS`, such as those in `wp-
 includes/post.php`, where only a post ID is available. I don't think it's
 a great idea to move the `get_post()` calls in those cases, since as is we
 bail beforehand if someone sets the constant's value to `false`.

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


More information about the wp-trac mailing list