[wp-trac] [WordPress Trac] #35450: Relocate user's primary_blog setting to user profile
WordPress Trac
noreply at wordpress.org
Mon Jan 18 03:38:38 UTC 2016
#35450: Relocate user's primary_blog setting to user profile
-----------------------------+------------------------------
Reporter: johnjamesjacoby | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Users | Version: 3.0
Severity: normal | Resolution:
Keywords: | Focuses: multisite
-----------------------------+------------------------------
Changes (by jeremyfelt):
* keywords: 2nd-opinion =>
Comment:
Replying to [ticket:35450 johnjamesjacoby]:
> In multisite installations, the `primary_blog` user setting is an
anomaly:
Period. :)
> I'd like to suggest we do a few things to improve this setting:
>
> * Move this setting into the user profile, and remove it from `my-
sites.php`
> * Introduce a new function, similar to `choose_primary_blog()`, for
displaying this field in the user profile
I'm conflicted on removing it from `my-sites.php`.
I don't like where it is right now, though I'm not sure if moving it to
the user profile makes that experience better for the user. In either
location, it's currently a case where introducing something like Select2
(#31696) makes sense.
If it does belong in `my-sites.php`, then it should be better integrated
with the UI sites so that there are not 2 lists of sites for a user to
wade through. A "make this my active site" indicator or something.
> * Move the saving of the `primary_blog` user meta key into
`wp_insert_user()` so it can added to a user a object
> * Switch to using the `user_meta()` functions, away from `user_option()`
At first glance, these make sense. I could also see some other
clarifications/corrections coming up when exploring how `active_blog` is
used.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35450#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list