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

Filipe Fortes fortes at gmail.com
Wed Dec 21 16:21:21 GMT 2005


The role-based system is actually orthogonal to this issue -- I'm
making that switch in parallel (letting the user choose which usermeta
key they wish to use).




On 12/21/05, Owen Winkler <ringmaster at midnightcircus.com> wrote:
> 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
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>


More information about the wp-hackers mailing list