Make WordPress Core

Opened 12 years ago

Last modified 8 weeks ago

#29128 new enhancement

Number of pages owned by a user is not shown under Users >>> All Users

Reported by: bflo Owned by:
Priority: normal Milestone:
Component: Users Version: 3.9.1
Severity: normal Keywords: has-patch has-unit-tests
Cc: Focuses: ui, administration

Description

This would be very useful in case you'd like to delete a user and want to keep some of the content that the user created. Right now you only have the possibility to see the number of posts so it would be great if another column with pages can be added.

Thanks

Attachments (1)

29128.patch (4.4 KB ) - added by rhyswynne 12 years ago.
Patch that adds the column "Pages". There is possibilities to be filtered though, but if needed, it's here.

Download all attachments as: .zip

Change History (8)

#1 @bflo
12 years ago

  • Severity normaltrivial

#2 @MikeHansenMe
12 years ago

I wonder if not adding another column but changing that one to something like "Content" then showing the number of all their items including pages, CPTs, etc. This would require some changes to the help text and some handling on the edit screen when the link is clicked. I think WP is much more now days than just posts.

@rhyswynne
12 years ago

Patch that adds the column "Pages". There is possibilities to be filtered though, but if needed, it's here.

#3 @rhyswynne
12 years ago

  • Keywords has-patch added

#4 @SergeyBiryukov
12 years ago

What about custom post types? The idea from comment:2 sounds better to me than adding another column with just the number of pages.

#6 @chriscct7
11 years ago

  • Focuses administration added
  • Keywords needs-patch added; has-patch removed
  • Severity trivialnormal

This ticket was mentioned in PR #12211 on WordPress/wordpress-develop by @arkaprabhachowdhury.


8 weeks ago
#7

  • Keywords has-patch has-unit-tests added; needs-patch removed

## Summary

  • relabel the Users list table count column from Posts to Content
  • count authored content across admin-visible post types that support authors
  • remove the misleading single-post-type admin link and add regression coverage for the broader count

## Testing

  • [x] php -l src/wp-admin/includes/class-wp-users-list-table.php
  • [x] php -l tests/phpunit/tests/admin/wpUsersListTable.php
  • [x] vendor/bin/phpcbf --standard=phpcs.xml.dist src/wp-admin/includes/class-wp-users-list-table.php tests/phpunit/tests/admin/wpUsersListTable.php
  • [x] vendor/bin/phpcs --standard=phpcs.xml.dist src/wp-admin/includes/class-wp-users-list-table.php tests/phpunit/tests/admin/wpUsersListTable.php
  • [ ] node tools/local-env/scripts/docker.js run --rm php ./vendor/bin/phpunit tests/phpunit/tests/admin/wpUsersListTable.php (blocked: Docker Desktop Linux engine not running)
  • [ ] php .\\vendor\\bin\\phpunit tests\\phpunit\\tests\\admin\\wpUsersListTable.php (blocked: host-side test DB mysql unavailable)
Note: See TracTickets for help on using tickets.