[wp-hackers] $_GET['user_id'] isn't working in 2.9 in profile_update hook

Andrew Nacin wp at andrewnacin.com
Sat Jan 2 18:11:23 UTC 2010


Sounds like it was the result of:
http://core.trac.wordpress.org/ticket/11222
http://core.trac.wordpress.org/ticket/11271
And related changesets.

On Sat, Jan 2, 2010 at 1:07 PM, Olivier <autremonde75 at gmail.com> wrote:

> Hello,
>
> If you add custom fields to the profile edition page, you will need
> the user_id once you save it. This used to be achieved through
> profile_update hook.
>
> On 2.8, I can get the user_id value from $_GET['user_id'] through this
> hook however in 2.9, it doesn't work anymore. I can however user $_POST
> ['user_id'] as a workaround but I just wanted to bring that fact here
> since some plugins authors may suffer from this issue... Not sure if
> this is really an issue indeed, maybe this was intentionnaly
> restricted...
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list