Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 9 years ago

#10340 closed defect (bug) (worksforme)

Unchecked "Automatically add paragraphs." but still auto added paragraphs

Reported by: zheng1212 Owned by: azaozz
Priority: normal Milestone:
Component: Widgets Version: 2.9
Severity: normal Keywords: reporter-feedback widget paragraphs
Cc: Focuses:

Description

Hello, I'm a new to WordPress Trac.

I dragged a text widget to the sidebar, added Google AdSense code, then keep the option "Automatically add paragraphs." unchecked.

But i found that, it continue adding paragraphs to my sidebar.

I tried 2.8 stable version and it still auto add that.

Please see my attachment imgs.

Attachments (2)

2.9-widgets.png​ (17.0 KB ) - added by zheng1212 17 years ago.
2.9-output.png​ (16.4 KB ) - added by zheng1212 17 years ago.

Download all attachments as: .zip

Change History (9)

@zheng1212
17 years ago

#1 @zheng1212
17 years ago

  • Summary Unchecked "Automatically add paragraphs." but added paragraphs → Unchecked "Automatically add paragraphs." but still auto added paragraphs

#2 follow-up: @Denis-de-Bernardy
17 years ago

  • Keywords reporter-feedback added
  • Priority high → normal
  • Severity major → normal

working fine on my end. please triple check that your theme or other plugins of yours isn't filtering the widget's text.

#3 in reply to: ↑ 2 @zheng1212
17 years ago

Replying to Denis-de-Bernardy:

working fine on my end. please triple check that your theme or other plugins of yours isn't filtering the widget's text.

Thanks. I'm using the theme 'Tarski' and i didn't find out the lines which lets it add a 'p' and 'br' tag.

Can you help me to find out?

#4 @Denis-de-Bernardy
17 years ago

  • Milestone 2.9
  • Resolution → worksforme
  • Status new → closed

yes. disable all plugins, use the default theme. enter this in a text widget:

test1

test2

to me, it ends up like:

test1 test2

i.e. it works.

#5 @ionfish
17 years ago

I doubt this is a WordPress problem; it's much more likely to do with the formatting Tarski adds to text widgets, which was added to solve some issues quite some time ago and hasn't been reviewed since. I'm redoing most of the widget-related code for the next version, so this should be fixed in the next week or so. Until then, try Denis' instructions; if they work, try opening the file app/launcher.php in your Tarski installation and comment out the following line:

add_filter('widget_text', 'tarski_content_massage');

#6 @ionfish
17 years ago

It's probably also worth noting that text widgets really should have more filtering on their output; wptexturize() at least.

#7 @programmin
9 years ago

  • Keywords reporter-feedback widget, paragraphs → reporter-feedback widget paragraphs

This is much worse in 4.8, at least this didn't happen before, and this should probably be escalated to critical issue.

Note: See TracTickets for help on using tickets.