WordPress.org

Make WordPress Core

Opened 4 years ago

Last modified 19 months ago

#18661 accepted enhancement

Include IDs for users and sites on their respective views in the network admin

Reported by: danielbachhuber Owned by: danielbachhuber
Milestone: Awaiting Review Priority: normal
Severity: normal Version:
Component: Networks and Sites Keywords: has-patch
Focuses: multisite, administration Cc:

Description

It would be nice if the IDs for Users and Sites were displayed in columns on their respective views in the network admin (with the option to hide in screen options of course)

Attachments (1)

id.18661.1.patch (1.4 KB) - added by danielbachhuber 4 years ago.
Add ID columns to ms-users and ms-sites tables

Download all attachments as: .zip

Change History (10)

@danielbachhuber4 years ago

Add ID columns to ms-users and ms-sites tables

comment:1 @danielbachhuber4 years ago

  • Keywords has-patch added
  • Status changed from new to accepted

id.18661.1.patch adds ID columns to ms-users and ms-sites tables. For the latter, there's already a switch value for the column (legacy code?) so we just need to register the column.

comment:2 @Latz4 years ago

There are plugins (e.g. "Reveal IDs" http://wordpress.org/extend/plugins/reveal-ids-for-wp-admin-25/) which can do this task if you really need to know the IDs. No need to confuse the users with this information since it's not needed for normal operation.

comment:3 follow-up: @nacin4 years ago

This is only for the network admin, where it's not users, as much as network administrators. I find needing these IDs all the time.

comment:4 @danielbachhuber4 years ago

+1 nacin. The hack for me right now is to load the edit URL for the user and grab the ID from the query string. Which is an ugly habit. I'd argue that easy access to the user ID is core for the network admin (where you're most likely managing a large number of users).

comment:5 @Latz4 years ago

OK, sorry, I seem to have missed the "network" part in the ticket.

comment:6 in reply to: ↑ 3 @westi4 years ago

Replying to nacin:

This is only for the network admin, where it's not users, as much as network administrators. I find needing these IDs all the time.

I'm interested to know what for.

Because I don't think we have anywhere in the Network Admin where you need to know this info to looks something up.

(I don't think adding something to the UI soley to help people look things up directly in the DB is worthwhile - I would rather we address the reasons that mean you go straight to the db)

comment:7 follow-up: @nacin4 years ago

For me, it's typically when I'm doing migrations and other DB level tasks. In particular, getting the ID of a blog, that way I can go inspect tables. User IDs are less helpful. My comment wasn't to support this for core, only that I would find it useful.

Can we add the renderer for the ID field for ms-users? We have some precedence there (like mature actions) which at least makes it super easy to register the column.

comment:8 in reply to: ↑ 7 @danielbachhuber4 years ago

Replying to nacin:

Can we add the renderer for the ID field for ms-users? We have some precedence there (like mature actions) which at least makes it super easy to register the column.

Who is this directed towards?

comment:9 @nacin19 months ago

  • Component changed from Network Admin to Networks and Sites
  • Focuses administration added
Note: See TracTickets for help on using tickets.