components/Roles/Roles.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 371-377 (lines=7) @@ | 
                                                            
                                    | 368 |  |  | 
                                                            
                                    | 369 |  |         $role_caps = array(); | 
                                                            
                                    | 370 |  |  | 
                                                            
                                    | 371 |  |         foreach ( $wp_roles->role_objects as $key => $role ) { | 
                                                            
                                    | 372 |  |             if ( is_array( $role->capabilities ) ) { | 
                                                            
                                    | 373 |  |                 foreach ( $role->capabilities as $cap => $grant ) { | 
                                                            
                                    | 374 |  |                     $role_caps[ $cap ] = $cap; | 
                                                            
                                    | 375 |  |                 } | 
                                                            
                                    | 376 |  |             } | 
                                                            
                                    | 377 |  |         } | 
                                                            
                                    | 378 |  |  | 
                                                            
                                    | 379 |  |         $role_caps = array_unique( $role_caps ); | 
                                                            
                                    | 380 |  |  | 
                                                                        
                 
                                                            
                    
classes/fields/pick.php 1 location
                
                
                    
                                                
                                                    
                                |  | @@ 2065-2071 (lines=7) @@ | 
                                                            
                                    | 2062 |  |  | 
                                                            
                                    | 2063 |  |         $role_caps = array(); | 
                                                            
                                    | 2064 |  |  | 
                                                            
                                    | 2065 |  |         foreach ( $wp_roles->role_objects as $key => $role ) { | 
                                                            
                                    | 2066 |  |             if ( is_array( $role->capabilities ) ) { | 
                                                            
                                    | 2067 |  |                 foreach ( $role->capabilities as $cap => $grant ) { | 
                                                            
                                    | 2068 |  |                     $role_caps[ $cap ] = $cap; | 
                                                            
                                    | 2069 |  |                 } | 
                                                            
                                    | 2070 |  |             } | 
                                                            
                                    | 2071 |  |         } | 
                                                            
                                    | 2072 |  |  | 
                                                            
                                    | 2073 |  |         $role_caps = array_unique( $role_caps ); | 
                                                            
                                    | 2074 |  |  |