WordPress.org

Make WordPress Core

Changeset 25587


Ignore:
Timestamp:
09/23/2013 10:44:26 PM (8 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-admin/includes/revision.php.

Fixes #25283.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/revision.php

    r25420 r25587  
    5656
    5757    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         */
    5871        $content_from = $compare_from ? apply_filters( "_wp_post_revision_field_$field", $compare_from->$field, $field, $compare_from, 'from' ) : '';
     72
     73        //duplicate_hook
    5974        $content_to = apply_filters( "_wp_post_revision_field_$field", $compare_to->$field, $field, $compare_to, 'to' );
    6075
Note: See TracChangeset for help on using the changeset viewer.