1 | <?php |
||||
2 | /** |
||||
3 | * Banned users admin widget |
||||
4 | */ |
||||
5 | $widget = elgg_extract('entity', $vars); |
||||
6 | |||||
7 | $num_display = sanitize_int($widget->num_display, false); |
||||
0 ignored issues
–
show
|
|||||
8 | // set default value for display number |
||||
9 | if (!$num_display) { |
||||
10 | $num_display = 5; |
||||
11 | } |
||||
12 | |||||
13 | echo elgg_list_entities_from_metadata([ |
||||
0 ignored issues
–
show
Are you sure
elgg_list_entities_from_...imit' => $num_display)) of type array can be used in echo ?
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
Loading history...
|
|||||
14 | 'type' => 'user', |
||||
15 | 'subtype'=> null, |
||||
16 | 'metadata_name_value_pairs' => [ |
||||
17 | ['banned' => 'yes'], |
||||
18 | ], |
||||
19 | 'pagination' => false, |
||||
20 | 'limit' => $num_display, |
||||
21 | ]); |
||||
22 |
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.