- fixed admin actions hook;

- fixed JS templates for list and grid view when user metakeys contain "-" symbol;
- fixed JS template list "$show_block" issue;
This commit is contained in:
nikitasinelnikov
2019-11-12 15:22:19 +02:00
parent 077e680c01
commit 6bd7a1a14e
5 changed files with 40 additions and 40 deletions
+3 -3
View File
@@ -1516,9 +1516,9 @@ if ( ! class_exists( 'um\core\User' ) ) {
* }
* ?>
*/
$actions = apply_filters( 'um_admin_user_actions_hook', null, um_profile_id() );
if ( ! isset( $actions ) || empty( $actions ) ) {
return false;
$actions = apply_filters( 'um_admin_user_actions_hook', array(), um_profile_id() );
if ( empty( $actions ) ) {
return $items;
}
foreach ( $actions as $id => $arr ) {