save_revision

The Jetpack by WordPress.com save revision function.

Description

save_revision( $css, (constant) $is_preview = false, (string) $preprocessor = '' ); 

Parameters (3)

0. $css
The css.
1. $is_preview — Optional. (constant) => false
The is preview.
2. $preprocessor — Optional. (string) => ''
The preprocessor.

Usage

  1. if ( !function_exists( 'save_revision' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'jetpack-by-wordpress-com/modules/custom-css/custom-css.php'; 
  3.  
  4. // The css. 
  5. $css = null; 
  6.  
  7. // The is preview. 
  8. $is_preview = false; 
  9.  
  10. // The preprocessor. 
  11. $preprocessor = ''; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = save_revision($css, $is_preview, $preprocessor); 
  15.  

Defined (1)

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

/modules/custom-css/custom-css.php  
  1. function save_revision( $css, $is_preview = false, $preprocessor = '' ) { 
  2. _deprecated_function( __FUNCTION__, '2.1', 'Jetpack_Custom_CSS::save_revision()' ); 
  3.  
  4. return Jetpack_Custom_CSS::save_revision( $css, $is_preview, $preprocessor );