• Resolved snicsnic

    (@snicsnic)


    Hi all, I’m developing a wordpress plugin and I have to use the function wp_get_current_user (https://codex.www.ads-software.com/Function_Reference/wp_get_current_user). In this documentation page, among the others, I read the following:

    Use the init or any subsequent action to call this function. Calling it outside of an action can lead to troubles. See #14024 for details.

    So I clicked on the issue (https://core.trac.www.ads-software.com/ticket/14024), and its status is “closed”: it also seems that it has been resolved for the milestone 3.4.

    So, is the documentation out of date? If yes, it would be better to specify which version of wordpress to which to that comment belongs to.

    I wrote here because this was the first place I found, thank you.

    snicsnic

Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator James Huff

    (@macmanx)

    Thanks!

    The Codex is entirely community editable, just use the same login you use for the forums, make the change, and take the credit. ??

    If you’d like me to do it instead, just let me know.

    Thread Starter snicsnic

    (@snicsnic)

    Done, thank you, I didn’t know that the same login would have worked.

    Have a nice day.

    Moderator James Huff

    (@macmanx)

    You’re welcome, and thank you for updating the documentation! ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin development – Outdated docs for function wp_get_current_user’ is closed to new replies.