0
votes
1answer
70 views

What could cause a WP Option to get truncated?

I have a WP plugin, where all admin setting field values were suddenly changed to the letter 'a'. All settings are stored in one 'big' option in the table. Seemed like the serialization gone wrong. I ...
10
votes
2answers
738 views

How come `wp_options` table does not have an index on `autoload`?

In the beginning of each page served by WordPress, there is a MySQL call to fetch options: SELECT option_name, option_value FROM wp_options WHERE autoload = 'yes'; Because there's no index on ...
1
vote
1answer
29 views

Editing options pages?

I'm trying to find a way of adding a single checkbox to one of the existing options pages, most likely options-reading.php programmatically. Unfortunately, I haven't found any good references on this. ...
0
votes
1answer
345 views

wordpress how to query wp_options table

I need to make an SQL call to find all records in wp_options matching a select statement. How do I query the table? My script already has these resources called... ...
2
votes
1answer
657 views

How to properly sanitize strings for update_option()

I've tried to import an option value via update_options($name, $value) where $value has special characters (like apostrophe's for example) and I've noticed that the apostrophe gets stripped out of the ...
0
votes
1answer
711 views

Decontruct serialized data array from wp_options

I'm trying to decontruct (and recreate) a serialized option value in wp_options called 'my_options' How would I build the array to recreate this option_value that currently exists for 'my_options'? ...