minileven_configuration_load

The WordPress Core minileven configuration load function.

Description

minileven_configuration_load(); 

Usage

  1. if ( !function_exists( 'minileven_configuration_load' ) ) { 
  2. require_once '/modules/minileven.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = minileven_configuration_load(); 
  7.  

Defined (1)

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

/modules/minileven.php  
  1. function minileven_configuration_load() { 
  2. if ( isset( $_POST['action'] ) && $_POST['action'] == 'save_options' && $_POST['_wpnonce'] == wp_create_nonce( 'minileven' ) ) { 
  3. if ( isset( $_POST['wp_mobile_excerpt'] ) ) { 
  4. update_option( 'wp_mobile_excerpt', '1' == $_POST['wp_mobile_excerpt'] ? '1' : '0' ); 
  5.  
  6. if ( isset( $_POST['wp_mobile_featured_images'] ) ) { 
  7. update_option( 'wp_mobile_featured_images', '1' == $_POST['wp_mobile_featured_images'] ? '1' : '0' ); 
  8.  
  9. update_option( 'wp_mobile_app_promos', ( isset( $_POST['wp_mobile_app_promos'] ) ) ? '1' : '0' ); 
  10.  
  11. Jetpack::state( 'message', 'module_configured' ); 
  12. wp_safe_redirect( Jetpack::module_configuration_url( 'minileven' ) ); 
  13. exit;