[wp-hackers] Plugin Port to 2.0: Showing private posts in single-view

Owen Winkler ringmaster at midnightcircus.com
Wed Dec 21 11:57:55 GMT 2005


Filipe Fortes wrote:
> 1. Is this code at all future proof? It works now because get_posts
> only calls current_user_can for single posts? Should I be making my
> filter more robust?

I'm not sure what exactly you're trying to do, but a cursory glance at 
your code suggests that you need to migrate from the user level system 
(and using the $user_level variable) into the Role-based system.

Owen


More information about the wp-hackers mailing list