Ticket #4975 (assigned defect)

Opened 1 year ago

Last modified 10 months ago

Move the_content filter from the_content() to get_the_content()

Reported by: pishmishy Assigned to: pishmishy (accepted)
Priority: normal Milestone: 2.9
Component: Template Version: 2.3
Severity: normal Keywords: template has-patch needs-testing
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

4975-post-template.php.patch (1.7 kB) - added by pishmishy on 09/14/07 13:16:16.

Change History

09/14/07 13:16:16 changed by pishmishy

  • attachment 4975-post-template.php.patch added.

09/14/07 13:16:42 changed by pishmishy

  • keywords changed from template to template has-patch.
  • status changed from new to assigned.

09/14/07 13:21:51 changed by pishmishy

See similar ticket #3359.

09/14/07 13:22:22 changed by Nazgul

  • milestone set to 2.4.

12/27/07 23:43:28 changed by santosj

  • component changed from General to Template.

01/30/08 14:53:09 changed by pishmishy

  • keywords changed from template has-patch to template has-patch needs-testing.

02/12/08 08:53:19 changed by pishmishy

  • milestone changed from 2.5 to 2.6.

Bumping milestone for feature freeze.