wppaste
WordPress

get_alloptions_110(): stdClass

Since
1.2.0
Source
wp-admin/includes/upgrade.php:2808
Retrieve all options as it was for 1.2.

Return

stdClass
List of options.

Uses · 2

  • untrailingslashit()Removes trailing forward slashes and backslashes if they exist.
  • stdClass::__construct()

Used by · 1

Source

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;}

History

Introduced in 1.2.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.8.8 tag, from src/wp-admin/includes/upgrade.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.