changed default value
This commit is contained in:
parent
f5dbb01273
commit
6344e10ab6
6 changed files with 10 additions and 8 deletions
|
@ -58,6 +58,7 @@ Project maintained on github at [pfefferle/wordpress-activitypub](https://github
|
||||||
### 0.3.2 ###
|
### 0.3.2 ###
|
||||||
|
|
||||||
* added "followers" endpoint
|
* added "followers" endpoint
|
||||||
|
* change activity content from blog 'excerpt' to blog 'content'
|
||||||
|
|
||||||
### 0.3.1 ###
|
### 0.3.1 ###
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,7 @@ class Activitypub_Admin {
|
||||||
'enum' => array( 'excerpt', 'content' ),
|
'enum' => array( 'excerpt', 'content' ),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
'default' => 'excerpt',
|
'default' => 'content',
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
register_setting(
|
register_setting(
|
||||||
|
|
|
@ -195,7 +195,7 @@ class Activitypub_Post {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function get_the_content() {
|
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();
|
return $this->get_the_post_summary();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,9 +2,9 @@
|
||||||
# This file is distributed under the MIT.
|
# This file is distributed under the MIT.
|
||||||
msgid ""
|
msgid ""
|
||||||
msgstr ""
|
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"
|
"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"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=utf-8\n"
|
"Content-Type: text/plain; charset=utf-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
|
@ -160,7 +160,7 @@ msgid "Post-Content"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/settings-page.php:21
|
#: templates/settings-page.php:21
|
||||||
msgid "Excerpt (default)"
|
msgid "Excerpt"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/settings-page.php:21
|
#: templates/settings-page.php:21
|
||||||
|
@ -168,7 +168,7 @@ msgid "A content summary, shortened to 400 characters and without markup."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/settings-page.php:24
|
#: templates/settings-page.php:24
|
||||||
msgid "Content"
|
msgid "Content (default)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: templates/settings-page.php:24
|
#: templates/settings-page.php:24
|
||||||
|
|
|
@ -58,6 +58,7 @@ Project maintained on github at [pfefferle/wordpress-activitypub](https://github
|
||||||
= 0.3.2 =
|
= 0.3.2 =
|
||||||
|
|
||||||
* added "followers" endpoint
|
* added "followers" endpoint
|
||||||
|
* change activity content from blog 'excerpt' to blog 'content'
|
||||||
|
|
||||||
= 0.3.1 =
|
= 0.3.1 =
|
||||||
|
|
||||||
|
|
|
@ -18,10 +18,10 @@
|
||||||
</th>
|
</th>
|
||||||
<td>
|
<td>
|
||||||
<p>
|
<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>
|
||||||
<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>
|
</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
Loading…
Reference in a new issue