[wp-trac] [WordPress Trac] #38681: Rename WP_User::for_blog() to WP_User::for_site()
WordPress Trac
noreply at wordpress.org
Sat Nov 5 09:01:46 UTC 2016
#38681: Rename WP_User::for_blog() to WP_User::for_site()
-----------------------------------+------------------------------
Reporter: flixos90 | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version:
Severity: normal | Resolution:
Keywords: has-patch 2nd-opinion | Focuses: multisite
-----------------------------------+------------------------------
Changes (by flixos90):
* keywords: needs-patch => has-patch 2nd-opinion
Comment:
[attachment:38681.diff] renames the method and adds a handler in the
`__call()` method for the old `for_blog()` method. It has not been
deprecated at this point (not sure yet).
In addition I renamed all instances of `$blog_id` to `$site_id` so that
the `WP_User` class is consistent.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38681#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list