Skip to content

Commit 6344e10

Browse files
committed
changed default value
1 parent f5dbb01 commit 6344e10

File tree

6 files changed

+10
-8
lines changed

6 files changed

+10
-8
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ Project maintained on github at [pfefferle/wordpress-activitypub](https://github
5858
### 0.3.2 ###
5959

6060
* added "followers" endpoint
61+
* change activity content from blog 'excerpt' to blog 'content'
6162

6263
### 0.3.1 ###
6364

includes/class-activitypub-admin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public static function register_settings() {
3838
'enum' => array( 'excerpt', 'content' ),
3939
),
4040
),
41-
'default' => 'excerpt',
41+
'default' => 'content',
4242
)
4343
);
4444
register_setting(

includes/class-activitypub-post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ public function get_object_type() {
195195
}
196196

197197
public function get_the_content() {
198-
if ( 'excerpt' === get_option( 'activitypub_post_content_type', 'excerpt' ) ) {
198+
if ( 'excerpt' === get_option( 'activitypub_post_content_type', 'content' ) ) {
199199
return $this->get_the_post_summary();
200200
}
201201

languages/activitypub.pot

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# This file is distributed under the MIT.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: ActivityPub 0.3.1\n"
5+
"Project-Id-Version: ActivityPub 0.3.2\n"
66
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/activitypub\n"
7-
"POT-Creation-Date: 2019-02-04 09:59:50+00:00\n"
7+
"POT-Creation-Date: 2019-02-04 12:33:44+00:00\n"
88
"MIME-Version: 1.0\n"
99
"Content-Type: text/plain; charset=utf-8\n"
1010
"Content-Transfer-Encoding: 8bit\n"
@@ -160,15 +160,15 @@ msgid "Post-Content"
160160
msgstr ""
161161

162162
#: templates/settings-page.php:21
163-
msgid "Excerpt (default)"
163+
msgid "Excerpt"
164164
msgstr ""
165165

166166
#: templates/settings-page.php:21
167167
msgid "A content summary, shortened to 400 characters and without markup."
168168
msgstr ""
169169

170170
#: templates/settings-page.php:24
171-
msgid "Content"
171+
msgid "Content (default)"
172172
msgstr ""
173173

174174
#: templates/settings-page.php:24

readme.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ Project maintained on github at [pfefferle/wordpress-activitypub](https://github
5858
= 0.3.2 =
5959

6060
* added "followers" endpoint
61+
* change activity content from blog 'excerpt' to blog 'content'
6162

6263
= 0.3.1 =
6364

templates/settings-page.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
</th>
1919
<td>
2020
<p>
21-
<label><input type="radio" name="activitypub_post_content_type" id="activitypub_post_content_type_excerpt" value="excerpt" <?php echo checked( 'excerpt', get_option( 'activitypub_post_content_type', 'excerpt' ) ); ?> /> <?php esc_html_e( 'Excerpt (default)', 'activitypub' ); ?></label> - <span class="description"><?php esc_html_e( 'A content summary, shortened to 400 characters and without markup.', 'activitypub' ); ?></span>
21+
<label><input type="radio" name="activitypub_post_content_type" id="activitypub_post_content_type_excerpt" value="excerpt" <?php echo checked( 'excerpt', get_option( 'activitypub_post_content_type', 'content' ) ); ?> /> <?php esc_html_e( 'Excerpt', 'activitypub' ); ?></label> - <span class="description"><?php esc_html_e( 'A content summary, shortened to 400 characters and without markup.', 'activitypub' ); ?></span>
2222
</p>
2323
<p>
24-
<label><input type="radio" name="activitypub_post_content_type" id="activitypub_post_content_type_content" value="content" <?php echo checked( 'content', get_option( 'activitypub_post_content_type', 'excerpt' ) ); ?> /> <?php esc_html_e( 'Content', 'activitypub' ); ?></label> - <span class="description"><?php esc_html_e( 'The full content.', 'activitypub' ); ?></span>
24+
<label><input type="radio" name="activitypub_post_content_type" id="activitypub_post_content_type_content" value="content" <?php echo checked( 'content', get_option( 'activitypub_post_content_type', 'content' ) ); ?> /> <?php esc_html_e( 'Content (default)', 'activitypub' ); ?></label> - <span class="description"><?php esc_html_e( 'The full content.', 'activitypub' ); ?></span>
2525
</p>
2626
</td>
2727
</tr>

0 commit comments

Comments
 (0)