[wp-trac] [WordPress Trac] #41179: Adding get_the_content-filter

WordPress Trac noreply at wordpress.org
Tue Jun 27 01:23:43 UTC 2017


#41179: Adding get_the_content-filter
------------------------------------------------+--------------------------
 Reporter:  Ninos Ego                           |       Owner:
     Type:  enhancement                         |      Status:  new
 Priority:  normal                              |   Milestone:  Awaiting
Component:  Themes                              |  Review
 Severity:  normal                              |     Version:  4.8
 Keywords:  has-patch needs-codex dev-feedback  |  Resolution:
                                                |     Focuses:  docs,
                                                |  template
------------------------------------------------+--------------------------

Comment (by Ninos Ego):

 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.

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

 Contra:
 - 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41179#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list