clean_revision_history

The WordPress Core clean revision history function.

Description

clean_revision_history( $media_id ); 

Parameters (1)

0. $media_id
The media id.

Usage

  1. if ( !function_exists( 'clean_revision_history' ) ) { 
  2. require_once '/_inc/lib/class.media.php'; 
  3.  
  4. // The media id. 
  5. $media_id = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = clean_revision_history($media_id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/_inc/lib/class.media.php  
  1. function clean_revision_history( $media_id ) { 
  2. Jetpack_Media::clean_revision_history( $media_id ); 
  3. };