mirror of
https://github.com/10h30/ultimatemember.git
synced 2026-07-19 14:43:49 +09:00
- 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:
@@ -1811,7 +1811,7 @@ if ( ! class_exists( 'um\core\Member_Directory' ) ) {
|
||||
* }
|
||||
* ?>
|
||||
*/
|
||||
$admin_actions = apply_filters( 'um_admin_user_actions_hook', null, $user_id );
|
||||
$admin_actions = apply_filters( 'um_admin_user_actions_hook', array(), $user_id );
|
||||
if ( ! empty( $admin_actions ) ) {
|
||||
foreach ( $admin_actions as $id => $arr ) {
|
||||
$url = add_query_arg( array( 'um_action' => $id, 'uid' => $user_id ), um_get_core_page( 'user' ) );
|
||||
|
||||
@@ -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 ) {
|
||||
|
||||
@@ -10,8 +10,6 @@
|
||||
* @return null
|
||||
*/
|
||||
function um_admin_user_actions_hook( $actions, $user_id ) {
|
||||
$actions = null;
|
||||
|
||||
um_fetch_user( $user_id );
|
||||
|
||||
//if ( UM()->roles()->um_current_user_can( 'edit', $user_id ) ) {
|
||||
|
||||
Reference in New Issue
Block a user