[wp-testers] "Are you sure you want to do this?" without button

Otto otto at ottodestruct.com
Tue Nov 11 15:30:18 GMT 2008


I'm not sure I fully understand you here. The only way to get that
message is to go directly to that page. Since there's nowhere in the
admin that you can do that, then the behavior is undefined. So... I'm
not sure why we'd need to handle that case.

On Tue, Nov 11, 2008 at 4:33 AM, Xavier Borderie <xavier at borderie.net> wrote:
>> Normally, that action is a POST (instead of a GET) and you're also
>> sending a nonce along with the request. The "are you sure" message is
>> the result of not sending the nonce. That would normally pop up (if no
>> nonce was send), not be a separate page.
>>
>> In other words, you should not point a browser to that URL directly.
>> Go to wp-admin/update-core.php and then click the upgrade button
>> instead.
>
> Yup, I know about nonces and understand the reason behind that "are
> you sure" message (hence my "which is
> nothing unexpected" bit)  :)
>
> My question was more related to the lack of possible "next action",
> namely "yes or no" buttons. A question is being asked by WP, and I
> cannot answer it: I see dead people.
>
> If these buttons also require nonces (which would be normal to safely
> perform the Yes action), then I think the code should at least offer a
> way to go back to /wp-admin with a single click - and not having to
> change the browser's URL. Hopefully nothing like
> "onclick='history.back();'", which would beat the idea of helping
> users who stumble upon the message not knowing why.
>
> --
> Xavier Borderie
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>


More information about the wp-testers mailing list