[wp-trac] [WordPress Trac] #30351: Input field with HTML tag as default value
WordPress Trac
noreply at wordpress.org
Sun Nov 16 10:14:52 UTC 2014
#30351: Input field with HTML tag as default value
-----------------------------+---------------------------------------------
Reporter: GDragoN | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: 4.0
Severity: normal | Resolution:
Keywords: reporter- | Focuses: ui, javascript, administration
feedback |
-----------------------------+---------------------------------------------
Comment (by GDragoN):
I have added example_widget_class.txt file, with just basic form() method.
Here you have field 'message' with default value set to use content with
HTML tag. When such widget is first add to the sidebar, field message will
display this default value, but when saved that will be gone, because when
added to sidebar __i__ in the name for the message field is not replaced
by actual widget number because value contains HTML.
Milan
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30351#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list