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
                
                
                    
                                                
                                                    
                                |  | @@ 2045-2051 (lines=7) @@ | 
                                                            
                                    | 2042 |  |  | 
                                                            
                                    | 2043 |  |         $role_caps = array(); | 
                                                            
                                    | 2044 |  |  | 
                                                            
                                    | 2045 |  |         foreach ( $wp_roles->role_objects as $key => $role ) { | 
                                                            
                                    | 2046 |  |             if ( is_array( $role->capabilities ) ) { | 
                                                            
                                    | 2047 |  |                 foreach ( $role->capabilities as $cap => $grant ) { | 
                                                            
                                    | 2048 |  |                     $role_caps[ $cap ] = $cap; | 
                                                            
                                    | 2049 |  |                 } | 
                                                            
                                    | 2050 |  |             } | 
                                                            
                                    | 2051 |  |         } | 
                                                            
                                    | 2052 |  |  | 
                                                            
                                    | 2053 |  |         $role_caps = array_unique( $role_caps ); | 
                                                            
                                    | 2054 |  |  |