[wp-hackers] Re: Working with $_registered_pages for plugins

Alex alex at dunae.ca
Fri Jul 3 22:49:03 GMT 2009


On 3 Jul 2009, at 20:01, Ryan Boren wrote:
> > Just add a current_user_can() check to it. That's what all plugins
> > should be doing anyway.  Don't rely on the menu cap check for
> > security.

I was actually having the opposite problem -- I was actually getting
permission denied errors from wp_die().

On Jul 3, 2:15 pm, Peter Westwood <peter.westw... at ftwr.co.uk> wrote:
>
> I assume you have a plugin page registered as a menu item.
>
> You could add an extra query var which triggered the special action  
> and pass it to that page.
>

That did it, thanks westi.  Much appreciated.



More information about the wp-hackers mailing list