1
0
mirror of https://git.feneas.org/mediaformat/fediembedi synced 2024-12-22 20:38:05 +01:00

Merge tag 'v0.10.4' into develop

Bug fix: Shortcode embed was causing post save issues
This commit is contained in:
Django Doucet 2020-03-11 19:48:27 -04:00
commit aa239d24bc
3 changed files with 13 additions and 2 deletions

View File

@ -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 '<details><summary>Mastodon</summary><pre>'; var_dump($status); echo '</pre></details>'; 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 '<details><summary>Mastodon</summary><pre>'; var_dump($client->getStatus($atts)); echo '</pre></details>'; 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 '<details><summary>PeerTube</summary><pre>'; var_dump($status); echo '</pre></details>'; endif;
$show_header = $atts['show_header'];
ob_start();
include(plugin_dir_path(__FILE__) . 'templates/peertube.tpl.php' );
return ob_get_clean();
}
/*

View File

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

View File

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