fix follower table
This commit is contained in:
parent
133de30b68
commit
7ed998d81f
1 changed files with 5 additions and 3 deletions
|
@ -16,6 +16,7 @@ class Followers extends WP_List_Table {
|
||||||
'name' => \__( 'Name', 'activitypub' ),
|
'name' => \__( 'Name', 'activitypub' ),
|
||||||
'username' => \__( 'Username', 'activitypub' ),
|
'username' => \__( 'Username', 'activitypub' ),
|
||||||
'identifier' => \__( 'Identifier', 'activitypub' ),
|
'identifier' => \__( 'Identifier', 'activitypub' ),
|
||||||
|
'updated_at' => \__( 'Last updated', 'activitypub' ),
|
||||||
'errors' => \__( 'Errors', 'activitypub' ),
|
'errors' => \__( 'Errors', 'activitypub' ),
|
||||||
'latest-error' => \__( 'Latest Error Message', 'activitypub' ),
|
'latest-error' => \__( 'Latest Error Message', 'activitypub' ),
|
||||||
);
|
);
|
||||||
|
@ -35,7 +36,7 @@ class Followers extends WP_List_Table {
|
||||||
$page_num = $this->get_pagenum();
|
$page_num = $this->get_pagenum();
|
||||||
$per_page = 20;
|
$per_page = 20;
|
||||||
|
|
||||||
$follower = FollowerCollection::get_followers( \get_current_user_id(), $per_page, ( $page_num - 1 ) * $per_page );
|
$followers = FollowerCollection::get_followers( \get_current_user_id(), $per_page, ( $page_num - 1 ) * $per_page );
|
||||||
$counter = FollowerCollection::count_followers( \get_current_user_id() );
|
$counter = FollowerCollection::count_followers( \get_current_user_id() );
|
||||||
|
|
||||||
$this->items = array();
|
$this->items = array();
|
||||||
|
@ -47,12 +48,13 @@ class Followers extends WP_List_Table {
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
foreach ( $follower as $follower ) {
|
foreach ( $followers as $follower ) {
|
||||||
$item = array(
|
$item = array(
|
||||||
'avatar' => esc_attr( $follower->get_avatar() ),
|
'avatar' => esc_attr( $follower->get_avatar() ),
|
||||||
'name' => esc_attr( $follower->get_name() ),
|
'name' => esc_attr( $follower->get_name() ),
|
||||||
'username' => esc_attr( $follower->get_username() ),
|
'username' => esc_attr( $follower->get_username() ),
|
||||||
'identifier' => esc_attr( $follower->get_actor() ),
|
'identifier' => esc_attr( $follower->get_actor() ),
|
||||||
|
'updated_at' => esc_attr( $follower->get_updated_at() ),
|
||||||
'errors' => $follower->count_errors(),
|
'errors' => $follower->count_errors(),
|
||||||
'latest-error' => $follower->get_latest_error_message(),
|
'latest-error' => $follower->get_latest_error_message(),
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue