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
                
                
                    
                                                
                                                    
                                |  | @@ 2134-2140 (lines=7) @@ | 
                                                            
                                    | 2131 |  |  | 
                                                            
                                    | 2132 |  |         $role_caps = array(); | 
                                                            
                                    | 2133 |  |  | 
                                                            
                                    | 2134 |  |         foreach ( $wp_roles->role_objects as $key => $role ) { | 
                                                            
                                    | 2135 |  |             if ( is_array( $role->capabilities ) ) { | 
                                                            
                                    | 2136 |  |                 foreach ( $role->capabilities as $cap => $grant ) { | 
                                                            
                                    | 2137 |  |                     $role_caps[ $cap ] = $cap; | 
                                                            
                                    | 2138 |  |                 } | 
                                                            
                                    | 2139 |  |             } | 
                                                            
                                    | 2140 |  |         } | 
                                                            
                                    | 2141 |  |  | 
                                                            
                                    | 2142 |  |         $role_caps = array_unique( $role_caps ); | 
                                                            
                                    | 2143 |  |  |