update checks
This commit is contained in:
parent
f734e511f7
commit
3b88d5e36c
2 changed files with 6 additions and 6 deletions
|
@ -77,10 +77,10 @@ class Admin {
|
||||||
* Load user settings page
|
* Load user settings page
|
||||||
*/
|
*/
|
||||||
public static function followers_list_page() {
|
public static function followers_list_page() {
|
||||||
if ( ! current_user_can( 'publish_posts' ) ) {
|
// user has to be able to publish posts
|
||||||
return;
|
if ( ! is_user_disabled( get_current_user_id() ) ) {
|
||||||
|
\load_template( ACTIVITYPUB_PLUGIN_DIR . 'templates/user-followers-list.php' );
|
||||||
}
|
}
|
||||||
\load_template( ACTIVITYPUB_PLUGIN_DIR . 'templates/user-followers-list.php' );
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -166,9 +166,9 @@ class Admin {
|
||||||
'activitypub_blog_user_identifier',
|
'activitypub_blog_user_identifier',
|
||||||
array(
|
array(
|
||||||
'type' => 'string',
|
'type' => 'string',
|
||||||
'description' => \esc_html__( 'The Identifier of th Blog-User', 'activitypub' ),
|
'description' => \esc_html__( 'The Identifier of the Blog-User', 'activitypub' ),
|
||||||
'show_in_rest' => true,
|
'show_in_rest' => true,
|
||||||
'default' => 'feed',
|
'default' => \Activitypub\Model\Blog_User::get_default_username(),
|
||||||
'sanitize_callback' => function( $value ) {
|
'sanitize_callback' => function( $value ) {
|
||||||
// hack to allow dots in the username
|
// hack to allow dots in the username
|
||||||
$parts = explode( '.', $value );
|
$parts = explode( '.', $value );
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
\load_template(
|
\load_template(
|
||||||
\dirname( __FILE__ ) . '/admin-header.php',
|
__DIR__ . '/admin-header.php',
|
||||||
true,
|
true,
|
||||||
array(
|
array(
|
||||||
'settings' => 'active',
|
'settings' => 'active',
|
||||||
|
|
Loading…
Reference in a new issue