get_alloptions_110

Advertisement

Summery Summery

Retrieve all options as it was for 1.2.

Syntax Syntax

get_alloptions_110()

Return Return

(stdClass) List of options.

Source Source

File: wp-admin/includes/upgrade.php

function get_alloptions_110() {
	global $wpdb;
	$all_options = new stdClass;
	$options     = $wpdb->get_results( "SELECT option_name, option_value FROM $wpdb->options" );
	if ( $options ) {
		foreach ( $options as $option ) {
			if ( 'siteurl' === $option->option_name || 'home' === $option->option_name || 'category_base' === $option->option_name ) {
				$option->option_value = untrailingslashit( $option->option_value );
			}
			$all_options->{$option->option_name} = stripslashes( $option->option_value );
		}
	}
	return $all_options;
}

Advertisement

Changelog Changelog

Changelog
Version Description
1.2.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.