Make WordPress Core

Opened 8 years ago

Closed 6 years ago

#4975 closed defect (bug) (duplicate)

Move the_content filter from the_content() to get_the_content()

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


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 8 years ago.

Download all attachments as: .zip

Change History (10)

comment:1 @pishmishy8 years ago

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

comment:2 @pishmishy8 years ago

See similar ticket #3359.

comment:3 @Nazgul8 years ago

  • Milestone set to 2.4

comment:4 @santosj8 years ago

  • Component changed from General to Template

comment:5 @pishmishy8 years ago

  • Keywords needs-testing added

comment:6 @pishmishy8 years ago

  • Milestone changed from 2.5 to 2.6

Bumping milestone for feature freeze.

comment:7 @Denis-de-Bernardy6 years ago

won't this break plugins?

comment:8 @Denis-de-Bernardy6 years ago

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

comment:9 @Denis-de-Bernardy6 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.