Changeset 25587
- Timestamp:
- 09/23/2013 10:44:26 PM (13 years ago)
- File:
-
- 1 edited
-
trunk/src/wp-admin/includes/revision.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/revision.php
r25420 r25587 56 56 57 57 foreach ( _wp_post_revision_fields() as $field => $name ) { 58 /** 59 * Contextually filter a post revision field. 60 * 61 * The dynamic portion of the hook name, $field, corresponds to each of the post 62 * fields of the revision object being iterated over in a foreach statement. 63 * 64 * @since 3.6.0 65 * 66 * @param string $compare_from->$field The current revision field to compare to or from. 67 * @param string $field The current revision field. 68 * @param WP_Post $compare_from The revision post object to compare to or from. 69 * @param string null The context of whether the current revision is the old or the new one. Values are 'to' or 'from'. 70 */ 58 71 $content_from = $compare_from ? apply_filters( "_wp_post_revision_field_$field", $compare_from->$field, $field, $compare_from, 'from' ) : ''; 72 73 //duplicate_hook 59 74 $content_to = apply_filters( "_wp_post_revision_field_$field", $compare_to->$field, $field, $compare_to, 'to' ); 60 75
Note: See TracChangeset
for help on using the changeset viewer.