Make WordPress Core

Changeset 1237 in tests


Ignore:
Timestamp:
03/05/2013 06:24:08 PM (12 years ago)
Author:
nacin
Message:

Post revisions now only get created when a field gets changed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/post/revisions.php

    r1214 r1237  
    279279        }
    280280
    281         wp_update_post( array( 'post_status' => 'publish', 'ID' => $post_id ) );
     281        wp_update_post( array( 'post_status' => 'publish', 'ID' => $post_id, 'post_content' => rand_str() ) );
    282282
    283283        $revisions = wp_get_post_revisions( $post_id );
Note: See TracChangeset for help on using the changeset viewer.