' );
\defined( 'ACTIVITYPUB_CUSTOM_POST_CONTENT' ) || \define( 'ACTIVITYPUB_CUSTOM_POST_CONTENT', "%title%
\n\n%content%\n\n%hashtags%
\n\n%shortlink%
" );
diff --git a/includes/class-admin.php b/includes/class-admin.php
index ecb7f73..0481cbb 100644
--- a/includes/class-admin.php
+++ b/includes/class-admin.php
@@ -100,11 +100,11 @@ class Admin {
);
\register_setting(
'activitypub',
- 'activitypub_number_images',
+ 'activitypub_max_image_attachments',
array(
'type' => 'integer',
'description' => \__( 'Number of images to attach to posts.', 'activitypub' ),
- 'default' => ACTIVITYPUB_NUMBER_IMAGES,
+ 'default' => ACTIVITYPUB_MAX_IMAGE_ATTACHMENTS,
)
);
\register_setting(
diff --git a/includes/model/class-post.php b/includes/model/class-post.php
index 832f742..91ff03b 100644
--- a/includes/model/class-post.php
+++ b/includes/model/class-post.php
@@ -76,7 +76,7 @@ class Post {
}
public function generate_attachments() {
- $max_images = intval( \apply_filters( 'activitypub_max_images', \get_option( 'activitypub_number_images', ACTIVITYPUB_NUMBER_IMAGES ) ) );
+ $max_images = intval( \apply_filters( 'activitypub_max_image_attachments', \get_option( 'activitypub_max_image_attachments', ACTIVITYPUB_MAX_IMAGE_ATTACHMENTS ) ) );
$images = array();
diff --git a/templates/settings.php b/templates/settings.php
index 90a1503..1c453c8 100644
--- a/templates/settings.php
+++ b/templates/settings.php
@@ -79,14 +79,14 @@
-
+
%s', 'activitypub' ),
- \esc_html( ACTIVITYPUB_NUMBER_IMAGES )
+ \esc_html( ACTIVITYPUB_MAX_IMAGE_ATTACHMENTS )
),
'default'
);
|