Skip to content

Commit

Permalink
changed default value
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Feb 4, 2019
1 parent f5dbb01 commit 6344e10
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 8 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Project maintained on github at [pfefferle/wordpress-activitypub](https://github
### 0.3.2 ###

* added "followers" endpoint
* change activity content from blog 'excerpt' to blog 'content'

### 0.3.1 ###

Expand Down
2 changes: 1 addition & 1 deletion includes/class-activitypub-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public static function register_settings() {
'enum' => array( 'excerpt', 'content' ),
),
),
'default' => 'excerpt',
'default' => 'content',
)
);
register_setting(
Expand Down
2 changes: 1 addition & 1 deletion includes/class-activitypub-post.php
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ public function get_object_type() {
}

public function get_the_content() {
if ( 'excerpt' === get_option( 'activitypub_post_content_type', 'excerpt' ) ) {
if ( 'excerpt' === get_option( 'activitypub_post_content_type', 'content' ) ) {
return $this->get_the_post_summary();
}

Expand Down
8 changes: 4 additions & 4 deletions languages/activitypub.pot
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
# This file is distributed under the MIT.
msgid ""
msgstr ""
"Project-Id-Version: ActivityPub 0.3.1\n"
"Project-Id-Version: ActivityPub 0.3.2\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/activitypub\n"
"POT-Creation-Date: 2019-02-04 09:59:50+00:00\n"
"POT-Creation-Date: 2019-02-04 12:33:44+00:00\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=utf-8\n"
"Content-Transfer-Encoding: 8bit\n"
Expand Down Expand Up @@ -160,15 +160,15 @@ msgid "Post-Content"
msgstr ""

#: templates/settings-page.php:21
msgid "Excerpt (default)"
msgid "Excerpt"
msgstr ""

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

#: templates/settings-page.php:24
msgid "Content"
msgid "Content (default)"
msgstr ""

#: templates/settings-page.php:24
Expand Down
1 change: 1 addition & 0 deletions readme.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ Project maintained on github at [pfefferle/wordpress-activitypub](https://github
= 0.3.2 =

* added "followers" endpoint
* change activity content from blog 'excerpt' to blog 'content'

= 0.3.1 =

Expand Down
4 changes: 2 additions & 2 deletions templates/settings-page.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
</th>
<td>
<p>
<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>
<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>
</p>
<p>
<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>
<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>
</p>
</td>
</tr>
Expand Down

0 comments on commit 6344e10

Please sign in to comment.