[wp-hackers] function remove_cap($cap)

ozgreg wpdevelop at ozgreg.com
Thu Mar 2 08:41:28 GMT 2006


As part of the next release of the WPG2 plugin I have switched the plugin over to the roles / caps from the old userlevels.

To handle some of the Gallery2 security aspects I have added two new caps however unless I am missing something here remove_cap($cap) just  unsets the cap it actually does not remove that cap from the role.

Am I overlooking something here or is it not possible to clean up any custom caps if the plugin has been deactivated?


-------------------- m2f --------------------

WPG2 Forums (http://wpg2.ozgreg.com/forums/)

-------------------- m2f --------------------






More information about the wp-hackers mailing list