get_users – post author dropdown on Gutenberg editor
-
The wordpress get_users function for the list of “authors” relies of “User_Level” meta data, but I understood that support for “user_level” was withdrawn in wordpress 1.5.
Surely, the code in lines 323 to 327 should be rewritten to either:
a) State that “authors” is the list of authors of existing posts (approach used by wp_list_authors)
b) Be associated with the “edit_posts” capability, so that it includes the potential to associate a post with a user who has yet to write a post.It appears that the user_level meta data is maintained as part of updating set|add_update user_roles and only works provided a capability has been assigned one of the deprecated User_Level roles.
The page I need help with: [log in to see the link]
The topic ‘get_users – post author dropdown on Gutenberg editor’ is closed to new replies.