[wp-trac] [WordPress Trac] #11324: Are Revisions Always Necessary?

WordPress Trac wp-trac at lists.automattic.com
Fri Dec 4 19:50:37 UTC 2009


#11324: Are Revisions Always Necessary?
-------------------------+--------------------------------------------------
 Reporter:  miqrogroove  |       Owner:                
     Type:  enhancement  |      Status:  new           
 Priority:  normal       |   Milestone:  Future Release
Component:  Revisions    |     Version:  2.8.4         
 Severity:  normal       |    Keywords:  needs-patch   
-------------------------+--------------------------------------------------

Comment(by caesarsgrunt):

 Replying to [comment:1 scribu]:
 > I suppose something like below would do the trick:
 >
 > {{{
 > if ( $old_content == $new_content && $old_title == $new_title )
 >   // skip adding a new revision
 > }}}
 +1 to the general idea of not saving revisions for metadata changes.

 In fact, I don't think a new revision is needed for a title change
 either... just for actual content changes.

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


More information about the wp-trac mailing list