<?php
$options =
$wpdb->
get_results( "SELECT * FROM
$wpdb->options ORDER BY option_name"
);
foreach ( (array) $options as $option ) :
$disabled = false;
if ( '' ===
$option->option_name
) { continue;
} if ( is_serialized( $option->option_value
) ) { if ( is_serialized_string( $option->option_value
) ) { // This is a serialized string, so we should display it.
$value =
maybe_unserialize( $option->option_value
);
$options_to_update[] =
$option->option_name;
$class = 'all-options';
} else { $value = 'SERIALIZED DATA';
$disabled = true;
$class = 'all-options disabled';
} } else { $value =
$option->option_value;