Make WordPress Core

Opened 19 years ago

Closed 17 years ago

#4975 closed defect (bug) (duplicate)

Move the_content filter from the_content() to get_the_content()

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

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

Download all attachments as: .zip

Change History (10)

#1 @pishmishy
19 years ago

  • Keywords has-patch added
  • Status new → assigned

#2 @pishmishy
19 years ago

See similar ticket #3359.

#3 @Nazgul
19 years ago

  • Milestone → 2.4

#4 @anonymized_218323
19 years ago

  • Component General → Template

#5 @pishmishy
19 years ago

  • Keywords needs-testing added

#6 @pishmishy
19 years ago

  • Milestone 2.5 → 2.6

Bumping milestone for feature freeze.

#7 @Denis-de-Bernardy
17 years ago

won't this break plugins?

#8 @Denis-de-Bernardy
17 years ago

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

#9 @Denis-de-Bernardy
17 years ago

  • Milestone 2.9
  • Resolution → duplicate
  • Status assigned → closed

See #9711

Note: See TracTickets for help on using tickets.