[wp-trac] [WordPress Trac] #29437: user_profile_update_errors action: function call priority bug
WordPress Trac
noreply at wordpress.org
Sat Aug 30 10:36:03 UTC 2014
#29437: user_profile_update_errors action: function call priority bug
----------------------------+-----------------------------
Reporter: rohitsethia | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Plugins | Version: 3.9.2
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-----------------------------
The '''user_profile_update_errors''' action hook: function call seems to
be running after the '''personal_options_update''' action hook, which
shows an error message even after successful update of the profile. I am
checking for a Purchase Code from the Envato API in which the user wants
to add a New License. So, for validation purposes I am checking whether
the requested Purchase Code is already present in the WP Database. If it
is not present, the Envato API will be contacted & if the verification is
successful, the license will be added to the Profile with a Success
Message else it will throw an Error message. But this doesnt seem to be
the case, as when I try adding a valid License, the profile updates first
and then it checks for validation which naturally shows an error
message(that the purchase code already exists). To verify this issue, I
tried defining a global variable inside the '''personal_options_update'''
action hook function which saves the Envato API response(whether
successful or error message) and then used the same global variable inside
the '''user_profile_update_errors''' action hook function to check if it
works fine now. And SURPRISINGLY it did work fine.!
So, I would request you to please check this issue out and provide us with
an update asap.
Thanks,
Rohit.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29437>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list