Make WordPress Core

Opened 12 years ago

Closed 12 years ago

#28337 closed defect (bug) (invalid)

Widget Customizer: Breaks if widget echo iframe code

Reported by: denzel_chia's profile denzel_chia Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.9
Component: Widgets Keywords:
Focuses: Cc:

Description

Hi,

Was working on a widget that echo html iframe video embed code and found that it breaks widget customizer. The sidebars does not appear in theme customizer if the widget was already deployed on sidebar. And it does not update the theme customizer preview if it was deployed within theme customizer. Not a conflict with any theme, I tried it out on 3 WordPress default themes.

Widget customizer works properly after I deleted the iframe html tag from my plugin code.
Probably the iframe html tag is causing javascript error?

Sorry if my explanation is not clear.

Thanks!
Denzel

Change History (4)

#1 @westonruter
12 years ago

Thanks for the report, Denzel. Would you be able to attach your plugin with the iframe-containing widget to this ticket, or provide a link to where the plugin can be found?

#2 @westonruter
12 years ago

  • Component changed from General to Widgets
  • Version changed from 3.9.1 to 3.9

#3 @denzel_chia
12 years ago

Hi,

Very sorry, I made a stupid mistake.

There was no closing iframe tag in my widget code.
If I deploy a text widget to sidebar and enter html iframe tag without a closing iframe tag, it will break the customizer. The sidebar will be missing. Does not break if I write other incomplete html tag.

Please kindly dismiss this ticket if it is not consider an issue.

Sorry about it!

Thanks!
Denzel

#4 @westonruter
12 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to invalid
  • Status changed from new to closed

No problem!

Note: See TracTickets for help on using tickets.