[wp-hackers] wp-hackers Digest, Vol 70, Issue 12

Muro, Matthew mmuro at advance.ua.edu
Fri Nov 5 17:39:52 UTC 2010


The plugin is Restrict Categories:  http://wordpress.org/extend/plugins/restrict-categories/

I have Firebug installed and can see the 'cat' parameter, but what is the PHP/jQuery I need to use to retrieve the value?

By the way, I have not committed the fix for 3.0.1 yet and can send that separately if you really want it.

Thanks,

Matthew Muro


On Nov 5, 2010, at 11:34 AM, <wp-hackers-request at lists.automattic.com<mailto:wp-hackers-request at lists.automattic.com>> <wp-hackers-request at lists.automattic.com<mailto:wp-hackers-request at lists.automattic.com>> wrote:

Message: 10
Date: Fri, 5 Nov 2010 18:22:26 +0200
From: scribu <mail at scribu.net<mailto:mail at scribu.net>>
Subject: Re: [wp-hackers] Get cat parameter from admin-ajax
To: wp-hackers at lists.automattic.com<mailto:wp-hackers at lists.automattic.com>
Message-ID:
       <AANLkTimn-R30PMUdzQ-UcDVHHYppEG0g9omOsEJgCpJp at mail.gmail.com<mailto:AANLkTimn-R30PMUdzQ-UcDVHHYppEG0g9omOsEJgCpJp at mail.gmail.com>>
Content-Type: text/plain; charset=UTF-8

On Fri, Nov 5, 2010 at 5:11 PM, Muro, Matthew <mmuro at advance.ua.edu<mailto:mmuro at advance.ua.edu>> wrote:

Hi all,

I have a plugin that restricts the categories users can view/edit in the
admin.  All works fine in WordPress 3.0.1, but as I started testing 3.1 I
noticed that the category filter, which is AJAX, allows you to bypass the
restrictions.  I'm able to filter this out in 3.0.1 because it's submitted
via URL parameters.  My trouble is being able to $_GET the 'cat' parameter
from the new AJAX request.

I'm no jQuery expert, so if someone has any ideas on how I can do this I'd
appreciate it.


If you install Firebug, you will find that the 'cat' parameter is passed to
the AJAX request too.

If you need more help, share the link to the plugin.



More information about the wp-hackers mailing list