Ticket #28627: 28627-2.diff
| File 28627-2.diff, 1.1 KB (added by , 12 years ago) |
|---|
-
wp-admin/includes/revision.php
164 164 $current_id = $revision->ID; 165 165 } 166 166 167 $revision s[ $revision->ID ]= array(167 $revision_model_object = array( 168 168 'id' => $revision->ID, 169 169 'title' => get_the_title( $post->ID ), 170 170 'author' => $authors[ $revision->post_author ], … … 175 175 'current' => $current, 176 176 'restoreUrl' => $can_restore ? $restore_link : false, 177 177 ); 178 179 /** 180 * Filter the revision model array used for the revisions JS. 181 * 182 * @since 4.0.0 183 * 184 * @param array $revision_model_object The revision model object for JS 185 * @param WP_Post $post The original post object which owns this revision 186 */ 187 $revisions[ $revision->ID ] = apply_filters( 'wp_prepare_revision_for_js', $revision_model_object, $post ); 188 178 189 } 179 190 180 191 // If a post has been saved since the last revision (no revisioned fields were changed)