Make WordPress Core

Opened 12 years ago

Closed 9 years ago

Last modified 9 years ago

#10593 closed feature request (maybelater)

Revisions Filter

Reported by: butuzov Owned by:
Milestone: Priority: normal
Severity: normal Version: 2.8.3
Component: Revisions Keywords: reporter-feedback
Focuses: Cc:


Is it posible to add new filter get_post_revision ?

for diff

$left_revision = apply_filters('get_post_revision', $left_revision);
$right_revision     = apply_filters('get_post_revision', $right_revision);

for view

$revision = apply_filters('get_post_revision', $revision);
$post     = apply_filters('get_post_revision', $post);

that will help to filter variables for diff (i want to use revisions for creating additional data) and i think that would be usefull...
no really...
currently there is no way (only change revisions.php manualy) to change variables in post. and its as i remamber from 2.6.. there are no such way =(

Change History (4)

#1 @westi
9 years ago

  • Keywords revisions-3.6 reporter-feedback added

Adding this to the list of tickets for review in the 3.6 revisions push.

Need to review current filters and see if any more are necessary.

Would be good to have a clearer understanding of the use-case here from butuzov - a more detailed example of what you are trying to achieve.

#2 @SergeyBiryukov
9 years ago

  • Summary changed from Revions Filter to Revisions Filter

#3 @westi
9 years ago

  • Keywords revisions-3.6 removed
  • Milestone Future Release deleted
  • Resolution set to maybelater
  • Status changed from new to closed

Closing this until we have more info on the specific use case and what filters would help.

We will keep in mind plugin integration in the 3.6 improvements.

#4 @ethitter
9 years ago

  • Cc erick@… added
Note: See TracTickets for help on using tickets.