updated plugin ActivityPub
version 0.17.0
This commit is contained in:
wp-content/plugins/activitypub
@ -50,6 +50,8 @@ class Admin {
|
||||
|
||||
switch ( $tab ) {
|
||||
case 'settings':
|
||||
\Activitypub\Model\Post::upgrade_post_content_template();
|
||||
|
||||
\load_template( \dirname( __FILE__ ) . '/../templates/settings.php' );
|
||||
break;
|
||||
case 'welcome':
|
||||
@ -98,6 +100,15 @@ class Admin {
|
||||
'default' => ACTIVITYPUB_CUSTOM_POST_CONTENT,
|
||||
)
|
||||
);
|
||||
\register_setting(
|
||||
'activitypub',
|
||||
'activitypub_max_image_attachments',
|
||||
array(
|
||||
'type' => 'integer',
|
||||
'description' => \__( 'Number of images to attach to posts.', 'activitypub' ),
|
||||
'default' => ACTIVITYPUB_MAX_IMAGE_ATTACHMENTS,
|
||||
)
|
||||
);
|
||||
\register_setting(
|
||||
'activitypub',
|
||||
'activitypub_object_type',
|
||||
@ -121,15 +132,6 @@ class Admin {
|
||||
'default' => 0,
|
||||
)
|
||||
);
|
||||
\register_setting(
|
||||
'activitypub',
|
||||
'activitypub_allowed_html',
|
||||
array(
|
||||
'type' => 'string',
|
||||
'description' => \__( 'List of HTML elements that are allowed in activities.', 'activitypub' ),
|
||||
'default' => ACTIVITYPUB_ALLOWED_HTML,
|
||||
)
|
||||
);
|
||||
\register_setting(
|
||||
'activitypub',
|
||||
'activitypub_support_post_types',
|
||||
|
Reference in New Issue
Block a user