Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#18330 closed enhancement (wontfix)

Add a Class functionality to wpautop()

Reported by: wpsmith Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Formatting Keywords: has-patch
Focuses: Cc:


It would be nice to be able to add a class to <p> with wpauto as an optional arg.

Attachments (1)

wpautop.patch (2.3 KB) - added by wpsmith 4 years ago.

Download all attachments as: .zip

Change History (3)

4 years ago

#1 @scribu
4 years ago

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

Erm... no.

Instead of each paragraph having a class, wrap that particular group of paragraphs in a container and add a class to the container.

Then you can style the paragraphs just as easily.

#2 @wpsmith
4 years ago

Yea, that's what I thought as I though through it a bit more.

Note: See TracTickets for help on using tickets.