Advertisements

get_alloptions_110

Definition:
function get_alloptions_110() {}

Retrieve all options as it was for 1.2.

Return values

returns:List of options.

Source code

function get_alloptions_110() {

	global $wpdb;

	if ($options = $wpdb->get_results("SELECT option_name, option_value FROM $wpdb->options")) {

		foreach ($options as $option) {

			// "When trying to design a foolproof system,

			//  never underestimate the ingenuity of the fools :)" -- Dougal

			if ('siteurl' == $option->option_name) $option->option_value = preg_replace('|/+$|', '', $option->option_value);

			if ('home' == $option->option_name) $option->option_value = preg_replace('|/+$|', '', $option->option_value);

			if ('category_base' == $option->option_name) $option->option_value = preg_replace('|/+$|', '', $option->option_value);

			$all_options->{$option->option_name} = stripslashes($option->option_value);

		}

	}

	return $all_options;

}

1130

Advertisements

No comments yet... Be the first to leave a reply!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: