"; if ( scoper_get_option('display_hints') ) { echo '
'; _e('These roles are defined by Role Scoper (and possibly other plugins) for your use in designating content-specific access or supplemental site-wide access. Although the default capabilities are ideal for most installations, you may modify them at your discretion.', 'scoper'); echo '
'; echo ''; _e('Since Role Scoper role definitions pertain to a particular object type, available capabilities are defined by the provider of that object type. WordPress core or plugins can add or revise default role definitions based on available capabilities.', 'scoper'); echo '
'; echo ''; if ( awp_ver( '3.0-dev' ) ) _e('WordPress Role assignments function as a default which may be supplemented or overriden by site-wide or content-specific assignment of these RS Roles.', 'scoper'); else _e('WordPress Role assignments function as a default which may be supplemented or overriden by blog-wide or content-specific assignment of these RS Roles.', 'scoper'); echo '
'; echo '" . $rs_role_defs->get_display_name($rs_role_handle) . '';
if ( isset( $wp_role_sync[$rs_role_handle] ) ) {
if ( isset( $wp_roles->role_objects[ $wp_role_sync[$rs_role_handle] ] ) ) {
$wp_role_handle = "wp_" . $wp_role_sync[$rs_role_handle];
$wp_display_name = $wp_roles->role_names[ $wp_role_sync[$rs_role_handle] ];
$contained_roles = $rs_role_defs->get_contained_roles( $wp_role_handle );
if ( ! isset( $contained_roles[$rs_role_handle] ) ) {
echo( ' ' ); printf( __( 'Warning: Since the WP %1$s role def lacks some caps selected here, it will be treated as a lesser role if Restrictions are applied.', 'scoper' ), $wp_display_name ); echo( '' ); $missing_caps = true; } else $missing_caps = false; // only display "sync WP role" checkbox if the WP role has missing caps or extra caps $otype_caps = $scoper->cap_defs->get_matching( $src_name, $object_type, '', STATUS_ANY_RS ); $wp_defined_caps = array_intersect_key( $wp_roles->role_objects[ $wp_role_sync[$rs_role_handle] ]->capabilities, $otype_caps ); $wp_extra_caps = array_diff_key( $wp_defined_caps, $rs_role_defs->role_caps[$rs_role_handle] ); /* if ( $wp_extra_caps ) $sync_caption = sprintf( _ x( 'sync WP %1$s to these selections (currently includes %2$s)', 'role name', 'scoper' ), $wp_display_name, implode( ", ", array_keys($wp_extra_caps) ) ); else $sync_caption = sprintf( _ x( 'sync WP %s to these selections', 'role name', 'scoper' ), $wp_display_name); */ if ( $wp_extra_caps ) $sync_caption = sprintf( __( 'sync WP %1$s to these selections (currently includes %2$s)', 'scoper' ), $wp_display_name, implode( ", ", array_keys($wp_extra_caps) ) ); else $sync_caption = sprintf( __( 'sync WP %s to these selections', 'scoper' ), $wp_display_name); echo ' ' ; $title = __( 'note: only the capabilities listed here will be affected', 'scoper' ); echo "" . "'; } } echo " |
|