[buddypress-trac] [BuddyPress] #4470: BuddyPress Singleton
buddypress-trac at lists.automattic.com
buddypress-trac at lists.automattic.com
Wed Aug 29 13:45:51 UTC 2012
#4470: BuddyPress Singleton
------------------------------+------------------------------
Reporter: johnjamesjacoby | Owner: johnjamesjacoby
Type: enhancement | Status: new
Priority: normal | Milestone: 1.7
Component: Core | Version:
Severity: normal | Resolution:
Keywords: has-patch commit |
------------------------------+------------------------------
Comment (by johnjamesjacoby):
Replying to [comment:11 foxly]:
> @cnorris23
>
> Well played ...:)
>
> Seriously though, other than in some of the 3rd party libs they're
using, where are you seeing a private method or var in the core?
>
> -F
class-http.php
class-smtp.php
class-wp-theme.php
taxonomy.php
It's not because it makes unit testing easier; it's because !WordPress was
PHP4 compatible for a majority of it's life.
In !WordPress 3.5, the WP_Post class is final; WP_Internal_Pointers is
final; WP_Screen is final; plenty of places where the intentions are not
to allow extension or poisoning of object data.
There are mixes and matches of private variables and data, appropriately
paired with magic getters and setters, that (just like with this ticket)
make the points your trying to prove inaccurate for the purpose of this
ticket.
--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/4470#comment:12>
BuddyPress <http://buddypress.org/>
BuddyPress
More information about the buddypress-trac
mailing list