diff --git a/activitypub.php b/activitypub.php index 2ee311b..da2eea2 100644 --- a/activitypub.php +++ b/activitypub.php @@ -20,6 +20,7 @@ namespace Activitypub; */ function init() { \defined( 'ACTIVITYPUB_EXCERPT_LENGTH' ) || \define( 'ACTIVITYPUB_EXCERPT_LENGTH', 400 ); + \defined( 'ACTIVITYPUB_SHOW_PLUGIN_RECOMMENDATIONS' ) || \define( 'ACTIVITYPUB_SHOW_PLUGIN_RECOMMENDATIONS', true ); \defined( 'ACTIVITYPUB_MAX_IMAGE_ATTACHMENTS' ) || \define( 'ACTIVITYPUB_MAX_IMAGE_ATTACHMENTS', 3 ); \defined( 'ACTIVITYPUB_HASHTAGS_REGEXP' ) || \define( 'ACTIVITYPUB_HASHTAGS_REGEXP', '(?:(?<=\s)|(?<=
)|(?<=
)|^)#([A-Za-z0-9_]+)(?:(?=\s|[[:punct:]]|$))' );
\defined( 'ACTIVITYPUB_USERNAME_REGEXP' ) || \define( 'ACTIVITYPUB_USERNAME_REGEXP', '(?:([A-Za-z0-9_-]+)@((?:[A-Za-z0-9_-]+\.)+[A-Za-z]+))' );
diff --git a/includes/model/class-post.php b/includes/model/class-post.php
index 2b6c84c..ccb161c 100644
--- a/includes/model/class-post.php
+++ b/includes/model/class-post.php
@@ -109,6 +109,12 @@ class Post {
),
'blockquote' => array(),
'cite' => array(),
+ 'code' => array(
+ 'class' => array(),
+ ),
+ 'pre' => array(
+ 'class' => array(),
+ ),
);
/**
diff --git a/templates/welcome.php b/templates/welcome.php
index 6d6c24b..2b6a362 100644
--- a/templates/welcome.php
+++ b/templates/welcome.php
@@ -42,7 +42,7 @@
);
?>