Opened 2 years ago
Last modified 17 months ago
#56129 reopened defect (bug)
Author Dropdown menu missing in Quick Edit
Reported by: | iheartdogs | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 6.0 |
Component: | Quick/Bulk Edit | Keywords: | reporter-feedback 2nd-opinion dev-feedback |
Focuses: | multisite, performance | Cc: |
Description
My publishing team just reached out to me regarding a useful feature. This feature allowed my writing team to change the author for a post through "Quick Edit" under each post. This feature is now visibly gone from the Quick Edit menu, forcing writers to open each post in a separate tab and change the author from there. Can you provide instructions on how to re-enable the change author field in Quick Edit?
Best,
Duke
Change History (7)
#2
@
2 years ago
- Focuses performance added
- Keywords reporter-feedback close added
Does your site have more than 10k users @iheartdogs? If so, as of WP 6.0 your site would be flagged as having a large user count. When this happens, the Quick Edit author dropdown is not rendered to avoid expensive database queries.
You can turn off this functionality with the following code snippet.
add_filter( 'wp_is_large_user_count', '__return_false' );
You can read more about this change in it's dev note.
#3
@
2 years ago
- Resolution set to invalid
- Status changed from new to closed
Thank you @iheartdogs for your question. Thanks too to @sabernhardt and @TimothyBlynJacobs for your comments. On testing this in the component tickets review this week, I could also find the Author dropdown in my installation, when logged is as an admin user and as an editor user. If sites have more than 10K users, the Quick Editor author dropdown is not rendered from version 6.0. This appears to answer the questions raised. Can I suggest we therefore close this ticket as there has not been any further issues reported? Thank you.
#6
@
17 months ago
- Resolution invalid deleted
- Status changed from closed to reopened
Hi.
I want to reopen this ticket.
Using the function wp_is_large_user_count()
in the posts Quick edit feature of a subsite in a multisite installation is not appropriate for determining whether the 'Change Author' option should be hidden. This is because the function wp_is_large_user_count()
checks for the total number of users in the entire network, rather than the number of users who can add or edit posts in the current subsite.
For instance, a network may have over 10,000 users, but a particular subsite may only have 2 or 3 users who have the ability to write posts. Therefore, relying on the function wp_is_large_user_count()
to decide whether or not to hide the 'Change Author' option leads to incorrect outcomes.
#7
@
17 months ago
- Focuses multisite added
- Keywords 2nd-opinion dev-feedback added
I tested this and wp_is_large_user_count() is getting the amount of users for entire network (global $current_site) instead of the current site (global $current_blog). This is probably intentional, because we cannot select users for the current site from wp_users
and would need to add join from wp_usermeta
with not empty user_level or capabilities for the current site (blog).
I found the Author dropdown in my installation, both as an admin user and as an editor. Could #28230 be related?