#19360 closed defect (bug) (fixed)
New feature pointers should not be shown to new users
Reported by: | johnbillion | Owned by: | nacin |
---|---|---|---|
Milestone: | 3.3 | Priority: | low |
Severity: | normal | Version: | 3.3 |
Component: | Administration | Keywords: | has-patch commit |
Focuses: | Cc: |
Description
The three 'new feature' pointers for 3.3 are neat, but they don't make sense when they're displayed to a newly registered user.
Scenario: A site is upgraded to 3.3 and all the existing users are shown the relevant pointers. When a new user is added they are also shown these pointers when they first log in telling them things have been updated.
Newly added users shouldn't see any admin pointers which explain about new features as they don't apply to them.
Attachments (3)
Change History (15)
#3
@
13 years ago
- Milestone changed from Awaiting Review to 3.3
- Owner set to nacin
- Priority changed from normal to low
- Status changed from new to accepted
On it. I wrote code for this but then implemented a similar bug fix another way (that'd be for hiding pointers for new installs).
#4
@
13 years ago
- Keywords has-patch added; needs-patch removed
Okay, my take.
Ideally, we use the same standard at the user-level as we do the site-level. That means initial_db_version for users, or dismissed_wp_pointers for a site option.
However, initial_db_version is considerably more flexible at the site level, and adding that for users just means another meta key, as they'll eventually end up with dismissed_wp_pointers.
Thus, we're left with pre-populating dismissed_wp_pointers for new users. Attached patch implements this. Assuming this is good, the add_action() should be commented out and then uncommented with #19382, that way test installs will continue to function as normal.
#5
@
13 years ago
While we're at it:
- _dismissed_wp_pointers_for_new_user() should become a static method in WP_Internal_Pointers.
- _get_additional_user_keys() and _wp_get_user_contactmethods() should become static methodss for WP_User. I remember this being discussed, why didn't we go through with it?
#6
@
13 years ago
Hmm, 19360.diff would also kick in on install, which renders the initial_db_version implementation unnecessary.
#7
@
13 years ago
- Keywords commit added
19360.2.diff is good to go. Could use another test drive.
Marking for commit as it is ready, but it should go in with the add_action() commented out until at least RC2.
#9
@
13 years ago
Currently testing 19360.3.diff. Includes cap checks.
I would agree with this. Newly registered users are the equivalent of people using a new install in this case. That said, since no one caught this earlier, I'd be okay with fixing this in a subsequent release since we're shooting for RC now and should only be addressing blockers.