diff --git a/fediembedi.php b/fediembedi.php index b08986f..d938737 100644 --- a/fediembedi.php +++ b/fediembedi.php @@ -3,7 +3,7 @@ * Plugin Name: FediEmbedi * Plugin URI: https://git.feneas.org/mediaformat/fediembedi * Description: Widgets and shortcodes to show your Fediverse profile timeline - * Version: 0.10.3 + * Version: 0.10.4 * Author: mediaformat * Author URI: https://mediaformat.org * License: GPLv3 @@ -177,7 +177,9 @@ class FediConfig //if(WP_DEBUG_DISPLAY === true): echo '
Mastodon
'; var_dump($status); echo '
'; endif; $show_header = $atts['show_header']; $account = $status[0]->account; + ob_start(); include(plugin_dir_path(__FILE__) . 'templates/mastodon.tpl.php' ); + return ob_get_clean(); } public function pixelfed_shortcode($atts){ @@ -204,7 +206,9 @@ class FediConfig //if(WP_DEBUG_DISPLAY === true): echo '
Mastodon
'; var_dump($client->getStatus($atts)); echo '
'; endif; $show_header = $atts['show_header']; $account = $status[0]->account; + ob_start(); include(plugin_dir_path(__FILE__) . 'templates/pixelfed.tpl.php' ); + return ob_get_clean(); } public function peertube_shortcode($atts){ @@ -229,8 +233,9 @@ class FediConfig //if(WP_DEBUG_DISPLAY === true): echo '
PeerTube
'; var_dump($status); echo '
'; endif; $show_header = $atts['show_header']; + ob_start(); include(plugin_dir_path(__FILE__) . 'templates/peertube.tpl.php' ); - + return ob_get_clean(); } /* diff --git a/readme.md b/readme.md index bd846d9..502a78e 100644 --- a/readme.md +++ b/readme.md @@ -53,6 +53,9 @@ and redirected to your site with a secure token. Similar to how you would connec ## Changelog +### 0.10.4 +* Bug fix: Embed included in post edit screen, causing post save issues. + ### 0.10.3 * Security fix: statuses with visibility marked unlisted, private, and direct could be displayed publicly diff --git a/readme.txt b/readme.txt index 35d1212..412ca6d 100644 --- a/readme.txt +++ b/readme.txt @@ -64,6 +64,9 @@ and redirected to your site with a secure token. Similar to how you would connec == Changelog == += 0.10.3 = +* Bug fix: Embed included in post edit screen, causing post save issues + = 0.10.3 = * Security fix: statuses with visibility marked unlisted, private, and direct could be displayed publicly