Axel,
Thank you for the feedback. What exactly are you looking for?
SVN is at http://plugins.svn.ww.wp.xz.cn/testimonials-widget/trunk/. I can handle patches.
Michael
Axel,
I’ve tried working on adding CPT meta capabilities without needing another plugin without success so far. If you’ve got contacts that could help me out, that’d be much appreciated.
Michael
Hi Michael,
oops, I somehow missed your first reply…
I did manage to get the steps outlined in the tutorial to work for my own CPT, but it’s been a little while ago, so I don’t quite remember OTTOMH – I think I just added 'capability_type' =>'blah' and 'capabilities' => array('publish_posts' => 'publish_blah, 'edit_posts' => 'edit_blah', etc)
to the register_post_types function’s arguments, and then pretty much copied Justin’s script (the add_filter( 'map_meta_cap', 'my_map_meta_cap', 10, 4 ); one), replacing ‘edit_movie’ etc as appropriate – I’ll try and have a go at this over the next few days…
Axel
Axel,
No worries. I’ve thought of a style that meet the needs of old and new style capabilities users. Due to the effort needed though, it’ll be a premium feature.
I do appreciate the push to make this happen.
Ciao!
Michael
Btw, the easy option to bring the plugin in line with WordPress 3.0+ is to simply replace the bits of code that have a hardcoded user level to their equivalent capability.
Eg in testimonials-widget.php line 201, change $user_level <3 to !current_user_can('edit_others_posts'). This *should* do the same thing (only select authors or below), although you might want to double-check…
Cheers,
Axel
Axel,
Very true. However, I’ve decided that if a capabilities plugin isn’t active, then we should run permissions as you suggest. However, if a capabilities plugin IS active, then we need to have CPT meta capabilities used.
Since there’s a bit of swapping and testing will be pain, it might be a big longer unless I get further like requests. Also, next week I get back onto a larger project, so my free coding time will likely drop. Therefore, slowing me down for fun stuff like this.
Michael
Axel,
What do consider the top capabilities plugins?
I’m looking at the todo list for things to put and meta is one of the last items remaining.
Michael
Version 2.5.5 respects meta capabilities now.
Nice!
I’ve used Justin Tadlock’s Members plugin in the past and am currently using User Role Editor by Vladimir Garagulya.
I just had a quick go switching edit_others_posts on and off using the latter plugin, and everything behaved as expected.
I believe those two are the most popular, but there’s a more comprehensive list of other roles/capabilities plugins at http://codex.ww.wp.xz.cn/Roles_and_Capabilities
Cheers,
Axel
Axel,
Thank you for the prompt feedback. If you have the permissions working as desired, then I think we’re fine for now.
Ciao!
Michael