get_alloptions_110

Retrieve all options as it was for 1.2.

Description

get_alloptions_110(); 

Usage

  1. if ( !function_exists( 'get_alloptions_110' ) ) { 
  2. require_once ABSPATH . '/wp-admin/includes/upgrade.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = get_alloptions_110(); 
  7.  

Defined (1)

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

/wp-admin/includes/upgrade.php  
  1. function get_alloptions_110() { 
  2. global $wpdb; 
  3. $all_options = new stdClass; 
  4. if ( $options = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options" ) ) { 
  5. foreach ( $options as $option ) { 
  6. if ( 'siteurl' == $option->option_name || 'home' == $option->option_name || 'category_base' == $option->option_name ) 
  7. $option->option_value = untrailingslashit( $option->option_value ); 
  8. $all_options->{$option->option_name} = stripslashes( $option->option_value ); 
  9. return $all_options;