Make WordPress Core

Changes between Initial Version and Version 8 of Ticket #30351


Ignore:
Timestamp:
01/13/2015 01:39:34 PM (10 years ago)
Author:
SergeyBiryukov
Comment:

Duplicate of #18446.

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #30351

    • Property Keywords reporter-feedback added
    • Property Status changed from new to closed
    • Property Resolution changed from to duplicate
    • Property Milestone changed from Awaiting Review to
  • Ticket #30351 – Description

    initial v8  
    1 If you create a widget with INPUT field, and if default value for that field is a HTML tag, when adding this widget into sidebar, __i__ for this INPUT is not replaced by sequential number for the widget. If the default value is not tag, it works fine. If after adding widget to sidebar you set HTML tag as value it is saved OK also. Problem is when field has HTML as default value.
     1If you create a widget with INPUT field, and if default value for that field is a HTML tag, when adding this widget into sidebar, `__i__` for this INPUT is not replaced by sequential number for the widget. If the default value is not tag, it works fine. If after adding widget to sidebar you set HTML tag as value it is saved OK also. Problem is when field has HTML as default value.
    22
    33From what I can see, this is a bug that is there since the Widget class is added to WordPress years ago. Problem is the regular expression that detects __i__ inside the HTML generated for the widget control.