WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#18811 closed task (blessed) (fixed)

3.3 upgrade routine

Reported by: nacin Owned by: nacin
Milestone: 3.3 Priority: normal
Severity: normal Version:
Component: Upgrade/Install Keywords: has-patch
Focuses: Cc:

Description

We need to remove a few usermeta keys on upgrade: show_admin_bar_admin and plugins_last_view.

While both were stored as global meta, they were fetched with get_user_option(), which means we could consider running a query looking for all table prefixes as well. Though, that's a bit rough on giant usermeta tables, so we could always stick to the basic keys.

Attachments (1)

18811.diff (860 bytes) - added by nacin 3 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 nacin3 years ago

In [18812]:

Remove remnants of show_admin_bar_admin. see #18811, see #18197.

nacin3 years ago

comment:2 nacin3 years ago

  • Keywords has-patch added

comment:3 ryan3 years ago

Looks good.

comment:4 nacin3 years ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In [19061]:

Introduce upgrade_330() to clear usermeta keys show_admin_bar_admin and plugins_last_view. fixes #18811.

comment:5 nacin3 years ago

In [19062]:

Merge upgrade_old_widgets_order_array() into upgrade_330(). see #18811, see #18821.

Note: See TracTickets for help on using tickets.