[wp-trac] [WordPress Trac] #24672: Remove final from WP_Post class

WordPress Trac noreply at wordpress.org
Tue Jul 23 07:34:44 UTC 2013


#24672: Remove final from WP_Post class
---------------------------+------------------------------
 Reporter:  carlalexander  |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  General        |     Version:  trunk
 Severity:  normal         |  Resolution:
 Keywords:                 |
---------------------------+------------------------------

Comment (by nacin):

 I think we are waiting for WP_Post to be joined by a WP_Comment and
 WP_Term, and then for all four classes (along with WP_User) to actually be
 decorated with methods. Removing that `final` makes it a free-for-all that
 will make it painful if not nearly impossible to make changes that don't
 break plugins. Very simply, `final` is the only thing that lets us turn
 this into a real API while not worrying about back compat. (This class was
 originally just for caching and sanitization sanity, not API.)

--
Ticket URL: <http://core.trac.wordpress.org/ticket/24672#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list