From 6344e10ab68517787a5ab0be472851a5a925b67a Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Mon, 4 Feb 2019 13:40:23 +0100 Subject: [PATCH] changed default value --- README.md | 1 + includes/class-activitypub-admin.php | 2 +- includes/class-activitypub-post.php | 2 +- languages/activitypub.pot | 8 ++++---- readme.txt | 1 + templates/settings-page.php | 4 ++-- 6 files changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 066b6d4..cbb25f2 100644 --- a/README.md +++ b/README.md @@ -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 ### diff --git a/includes/class-activitypub-admin.php b/includes/class-activitypub-admin.php index 8af226d..499176c 100644 --- a/includes/class-activitypub-admin.php +++ b/includes/class-activitypub-admin.php @@ -38,7 +38,7 @@ class Activitypub_Admin { 'enum' => array( 'excerpt', 'content' ), ), ), - 'default' => 'excerpt', + 'default' => 'content', ) ); register_setting( diff --git a/includes/class-activitypub-post.php b/includes/class-activitypub-post.php index e7d9f7c..9c67158 100644 --- a/includes/class-activitypub-post.php +++ b/includes/class-activitypub-post.php @@ -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(); } diff --git a/languages/activitypub.pot b/languages/activitypub.pot index c30e656..a536a12 100644 --- a/languages/activitypub.pot +++ b/languages/activitypub.pot @@ -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 diff --git a/readme.txt b/readme.txt index 423ec0a..42760d8 100644 --- a/readme.txt +++ b/readme.txt @@ -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 = diff --git a/templates/settings-page.php b/templates/settings-page.php index 524c971..02ade97 100644 --- a/templates/settings-page.php +++ b/templates/settings-page.php @@ -18,10 +18,10 @@

- - + -

- - + -