Make WordPress Core

Opened 7 months ago

Last modified 7 months ago

#41179 new enhancement

Adding get_the_content-filter

Reported by: Ninos Ego Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 4.8
Component: Themes Keywords: has-patch needs-codex dev-feedback
Focuses: docs, template Cc:


Hey there,
atm I cannot replace the content by a custom on, because of missing filter for get_the_content().

Attached a patch for this.

Attachments (1)

get_the_content_filter.patch (1.6 KB) - added by Ninos Ego 7 months ago.

Download all attachments as: .zip

Change History (3)

#1 @Ninos Ego
7 months ago

  • Keywords has-patch needs-codex dev-feedback added

#2 @Ninos Ego
7 months ago

BTW the function get_the_content() and the_content() seems too much inconsistent compared with e.g. get_the_excerpt() and the_excerpt(). Also it looks too much complex (job could surely be done in an easier way). May it needs a complete refactoring.


  • Cleaner code (more consistent)
    • Easier to maintain
    • For devs: easier to understand and implement


  • Theme and plugin authors may need to refactor their code

PS: I hope for WP 5.0 you're planning some refactoring, e.g. media lib and code cleanup / consistency.

Note: See TracTickets for help on using tickets.