changed default value

This commit is contained in:
Matthias Pfefferle 2019-02-04 13:40:23 +01:00
parent f5dbb01273
commit 6344e10ab6
6 changed files with 10 additions and 8 deletions

View file

@ -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 ###

View file

@ -38,7 +38,7 @@ class Activitypub_Admin {
'enum' => array( 'excerpt', 'content' ),
),
),
'default' => 'excerpt',
'default' => 'content',
)
);
register_setting(

View file

@ -195,7 +195,7 @@ class Activitypub_Post {
}
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();
}

View file

@ -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"
@ -160,7 +160,7 @@ msgid "Post-Content"
msgstr ""
#: templates/settings-page.php:21
msgid "Excerpt (default)"
msgid "Excerpt"
msgstr ""
#: templates/settings-page.php:21
@ -168,7 +168,7 @@ 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

View file

@ -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 =

View file

@ -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>