Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fixed for wordpress

  • Loading branch information...
commit 4f6fab252e0e5bb5fd9fdb8c683802a127ca0fe4 1 parent be460f6
@NoahY authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 qa-marker-layer.php
View
6 qa-marker-layer.php
@@ -44,15 +44,15 @@ function post_meta($post, $class, $prefix=null, $separator='<BR/>')
function get_role_marker($uid,$switch) {
if (QA_FINAL_EXTERNAL_USERS) {
$user = get_userdata( $uid );
- if (isset($user->wp_capabilities['administrator'] || isset($user->caps['administrator']) || in_array('administrator',$user->roles)) {
+ if (isset($user->wp_capabilities['administrator']) || isset($user->caps['administrator']) || in_array('administrator',$user->roles)) {
$level=qa_lang('users/level_admin');
$img = 'gold';
}
- elseif (isset($user->wp_capabilities['editor'] || isset($user->caps['editor']) || in_array('editor',$user->roles)) {
+ elseif (isset($user->wp_capabilities['editor']) || isset($user->caps['editor']) || in_array('editor',$user->roles)) {
$level=qa_lang('users/level_editor');
$img = 'silver';
}
- elseif (isset($user->wp_capabilities['contributor'] || isset($user->caps['contributor']) || in_array('contributor',$user->roles)) {
+ elseif (isset($user->wp_capabilities['contributor']) || isset($user->caps['contributor']) || in_array('contributor',$user->roles)) {
$level=qa_lang('users/level_expert');
$img = 'bronze';
}
Please sign in to comment.
Something went wrong with that request. Please try again.