[wp-trac] Re: [WordPress Trac] #8833: extract pluggable.php
function logic into separate functions
WordPress Trac
wp-trac at lists.automattic.com
Fri Jan 9 21:34:10 GMT 2009
#8833: extract pluggable.php function logic into separate functions
-------------------------+--------------------------------------------------
Reporter: wnorris | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 2.8
Component: Plugins | Version:
Severity: normal | Resolution:
Keywords: needs-patch |
-------------------------+--------------------------------------------------
Comment (by wnorris):
In fact, this is very similar to how `set_current_user()` already works...
it's simply a wrapper that calls `wp_set_current_user()`. The only
problem with this one in particular, is that all the other functions in
pluggable.php call `wp_set_current_user` directly, instead of calling the
wrapper function (elsewhere in WordPress, most of the code correctly calls
the wrapper function). It's the right idea, just needs to be cleaned up.
--
Ticket URL: <http://trac.wordpress.org/ticket/8833#comment:2>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list