BP_Members_Admin: user_admin ()
显示用户的配置文件。
描述
源
文件:bp-members /类/ class-bp-members-admin.php
Public function user_admin() {if (!Bp_current_user_can ('bp_moderate') && empty($this-> is_selfprofile)) {die('-1');} //获取用户ID。美元user_id = $ this - > get_user_id ();$user = get_user_to_edit($user_id);/ /构造标题。if (true === $this-> is_selfprofile) {$title = __('Profile', 'buddyboss');} else {$title = __('编辑用户','buddyboss');} //为表单构造URL。$request_url = remove_query_arg(array('action', 'error', 'updated', 'spam', 'ham'), $_SERVER['REQUEST_URI']); $form_action_url = add_query_arg( 'action', 'update', $request_url ); $wp_http_referer = false; if ( ! empty( $_REQUEST['wp_http_referer'] ) ) { $wp_http_referer = wp_unslash( $_REQUEST['wp_http_referer'] ); $wp_http_referer = remove_query_arg( array( 'action', 'updated' ), $wp_http_referer ); $wp_http_referer = wp_validate_redirect( esc_url_raw( $wp_http_referer ) ); } // Prepare notice for admin. $notice = $this->get_user_notice(); if ( ! empty( $notice ) ) : ?>
更新日志
版本 | 描述 |
---|---|
BuddyPress 2.0.0 | 介绍了。 |