[wpmu-trac] [WordPress MU Trac] #374: options with line breaks are
truncated on blog edit form
WordPress MU Trac
wpmu-trac at lists.automattic.com
Fri Jul 13 16:25:57 GMT 2007
#374: options with line breaks are truncated on blog edit form
--------------------------+-------------------------------------------------
Reporter: mihaigrigori | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone:
Component: component1 | Version:
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
On blog editing pages like
http://www..../wp-admin/wpmu-blogs.php?action=editblog&id=13
most of the options from wp_13_options are listed on the left side (and
editable - except the serialized ones).
Option values that have line breaks are truncated as they are loaded in
text fields. Submitting this form for a reason will cause the loss of
these values.
e.g. I used to have several ping sites under the 'ping_sites' option
separated by line breaks (I've imported the blog to MU from regular WP).
Submitting the form left me with the first entry only.
Possible ways to fix this:
- search for line breaks in the option_value and use 'textarea' instead of
'text' fields when the option value has line breaks.
- use textarea instead of text fields for all values
This is happening in WPMU 1.2.1 - 1.2.3
--
Ticket URL: <http://trac.mu.wordpress.org/ticket/374>
WordPress MU Trac <http://mu.wordpress.org/>
WordPress Multiuser
More information about the wpmu-trac
mailing list