« Return to Thread: Working with $_registered_pages for plugins

Re: Working with $_registered_pages for plugins

by Alex Dunae :: Rate this Message:

Reply to Author | View in Thread

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...@...> 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.

_______________________________________________
wp-hackers mailing list
wp-hackers@...
http://lists.automattic.com/mailman/listinfo/wp-hackers

 « Return to Thread: Working with $_registered_pages for plugins