Make WordPress Core

Opened 17 years ago

Closed 15 years ago

#4975 closed defect (bug) (duplicate)

Move the_content filter from the_content() to get_the_content()

Reported by: pishmishy's profile pishmishy Owned by: pishmishy's profile pishmishy
Milestone: Priority: normal
Severity: normal Version: 2.3
Component: Template Keywords: template has-patch needs-testing
Focuses: Cc:

Description

The current application of the 'the_content' filter in the_content() forces it to be applied not only to the actual content but across the (more...) link too. This makes it difficult for theme authors who wish to wrap the actual content into a single block and then the (more...) and comment links into another block.

Applying the filter into get_the_content() before the (more...) link is appended to the output, and separately wrapping the (more...) link with <p> tags, with arguments to override this behavior, resolves this problem without breaking existing themes.

Attachments (1)

4975-post-template.php.patch (1.7 KB) - added by pishmishy 17 years ago.

Download all attachments as: .zip

Change History (10)

#1 @pishmishy
17 years ago

  • Keywords has-patch added
  • Status changed from new to assigned

#2 @pishmishy
17 years ago

See similar ticket #3359.

#3 @Nazgul
17 years ago

  • Milestone set to 2.4

#4 @santosj
16 years ago

  • Component changed from General to Template

#5 @pishmishy
16 years ago

  • Keywords needs-testing added

#6 @pishmishy
16 years ago

  • Milestone changed from 2.5 to 2.6

Bumping milestone for feature freeze.

#7 @Denis-de-Bernardy
15 years ago

won't this break plugins?

#8 @Denis-de-Bernardy
15 years ago

itching to close this as dup of #9711, which approaches the same point a bit differently.

#9 @Denis-de-Bernardy
15 years ago

  • Milestone 2.9 deleted
  • Resolution set to duplicate
  • Status changed from assigned to closed

See #9711

Note: See TracTickets for help on using tickets.