Changes between Initial Version and Version 1 of Ticket #16574, comment 23
- Timestamp:
- 03/05/2012 01:34:38 AM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #16574, comment 23
initial v1 1 1 Replying to [comment:20 scribu]: 2 2 > As for the isset() in `__get()`, I'm not sure if it's a good idea to silently fail if the key doesn't exist. 3 Plugins like BuddyPress and bbPress don't always load a real $post and rely on silent failure. The $post global is sometimes set with dummy (or semi relevant) information to satisfy the bare minimum of !WordPress's API that expects it to exist. Silent failure is the way the WP_User magic methods work; !WordPress's pluggable nature makes it seem fitting it act as the construct toprevent notices where it can.3 Plugins like BuddyPress and bbPress don't always load a real $post and rely on silent failure. The $post global is sometimes set with dummy (or semi relevant) information to satisfy the bare minimum of !WordPress's API that expects it to exist. Silent failure is the way the WP_User magic methods work; given !WordPress's pluggable nature, it's fitting that it prevent notices where it can.