Skip to content

Fix: Update since tag for wp_get_user_request()#11653

Open
DarkMatter-999 wants to merge 2 commits intoWordPress:trunkfrom
DarkMatter-999:65132-fix-wp-get-user-request-since-tag
Open

Fix: Update since tag for wp_get_user_request()#11653
DarkMatter-999 wants to merge 2 commits intoWordPress:trunkfrom
DarkMatter-999:65132-fix-wp-get-user-request-since-tag

Conversation

@DarkMatter-999
Copy link
Copy Markdown

Trac ticket: https://core.trac.wordpress.org/ticket/65132

This PR corrects the @since annotation for wp_get_user_request() in src/wp-includes/user.php, updating it from 4.9.6 to 5.4.0.

The function wp_get_user_request_data() was renamed to wp_get_user_request() in WordPress 5.4.0 (changeset 47245), and the original function was deprecated. However, the docblock for wp_get_user_request() was not updated at the time and incorrectly stated that it was introduced in version 4.9.6.

Use of AI Tools

AI assistance: Yes
Model(s): Gemini 3.1 Pro
Used for: Drafting this PR description.


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

@github-actions
Copy link
Copy Markdown

Test using WordPress Playground

The changes in this pull request can previewed and tested using a WordPress Playground instance.

WordPress Playground is an experimental project that creates a full WordPress instance entirely within the browser.

Some things to be aware of

  • All changes will be lost when closing a tab with a Playground instance.
  • All changes will be lost when refreshing the page.
  • A fresh instance is created each time the link below is clicked.
  • Every time this pull request is updated, a new ZIP file containing all changes is created. If changes are not reflected in the Playground instance,
    it's possible that the most recent build failed, or has not completed. Check the list of workflow runs to be sure.

For more details about these limitations and more, check out the Limitations page in the WordPress Playground documentation.

Test this pull request with WordPress Playground.

@DarkMatter-999 DarkMatter-999 marked this pull request as ready for review April 27, 2026 10:52
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 27, 2026

The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the props-bot label.

Core Committers: Use this line as a base for the props when committing in SVN:

Props lakshyajeet, nikunj8866.

To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook.

Comment thread src/wp-includes/user.php Outdated
…get_user_request_data()` to `wp_get_user_request()`
Copy link
Copy Markdown

@nikunj8866 nikunj8866 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants