Bug fix: Shortcode embed included in post edit screen, causing post save issues
This commit is contained in:
parent
50fe87fb15
commit
a605a8cc46
|
@ -3,7 +3,7 @@
|
||||||
* Plugin Name: FediEmbedi
|
* Plugin Name: FediEmbedi
|
||||||
* Plugin URI: https://git.feneas.org/mediaformat/fediembedi
|
* Plugin URI: https://git.feneas.org/mediaformat/fediembedi
|
||||||
* Description: Widgets and shortcodes to show your Fediverse profile timeline
|
* Description: Widgets and shortcodes to show your Fediverse profile timeline
|
||||||
* Version: 0.10.3
|
* Version: 0.10.4
|
||||||
* Author: mediaformat
|
* Author: mediaformat
|
||||||
* Author URI: https://mediaformat.org
|
* Author URI: https://mediaformat.org
|
||||||
* License: GPLv3
|
* 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;
|
//if(WP_DEBUG_DISPLAY === true): echo '<details><summary>Mastodon</summary><pre>'; var_dump($status); echo '</pre></details>'; endif;
|
||||||
$show_header = $atts['show_header'];
|
$show_header = $atts['show_header'];
|
||||||
$account = $status[0]->account;
|
$account = $status[0]->account;
|
||||||
|
ob_start();
|
||||||
include(plugin_dir_path(__FILE__) . 'templates/mastodon.tpl.php' );
|
include(plugin_dir_path(__FILE__) . 'templates/mastodon.tpl.php' );
|
||||||
|
return ob_get_clean();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function pixelfed_shortcode($atts){
|
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;
|
//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'];
|
$show_header = $atts['show_header'];
|
||||||
$account = $status[0]->account;
|
$account = $status[0]->account;
|
||||||
|
ob_start();
|
||||||
include(plugin_dir_path(__FILE__) . 'templates/pixelfed.tpl.php' );
|
include(plugin_dir_path(__FILE__) . 'templates/pixelfed.tpl.php' );
|
||||||
|
return ob_get_clean();
|
||||||
}
|
}
|
||||||
|
|
||||||
public function peertube_shortcode($atts){
|
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;
|
//if(WP_DEBUG_DISPLAY === true): echo '<details><summary>PeerTube</summary><pre>'; var_dump($status); echo '</pre></details>'; endif;
|
||||||
$show_header = $atts['show_header'];
|
$show_header = $atts['show_header'];
|
||||||
|
ob_start();
|
||||||
include(plugin_dir_path(__FILE__) . 'templates/peertube.tpl.php' );
|
include(plugin_dir_path(__FILE__) . 'templates/peertube.tpl.php' );
|
||||||
|
return ob_get_clean();
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -53,6 +53,9 @@ and redirected to your site with a secure token. Similar to how you would connec
|
||||||
|
|
||||||
## Changelog
|
## Changelog
|
||||||
|
|
||||||
|
### 0.10.4
|
||||||
|
* Bug fix: Embed included in post edit screen, causing post save issues.
|
||||||
|
|
||||||
### 0.10.3
|
### 0.10.3
|
||||||
* Security fix: statuses with visibility marked unlisted, private, and direct could be displayed publicly
|
* Security fix: statuses with visibility marked unlisted, private, and direct could be displayed publicly
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,9 @@ and redirected to your site with a secure token. Similar to how you would connec
|
||||||
|
|
||||||
== Changelog ==
|
== Changelog ==
|
||||||
|
|
||||||
|
= 0.10.3 =
|
||||||
|
* Bug fix: Embed included in post edit screen, causing post save issues
|
||||||
|
|
||||||
= 0.10.3 =
|
= 0.10.3 =
|
||||||
* Security fix: statuses with visibility marked unlisted, private, and direct could be displayed publicly
|
* Security fix: statuses with visibility marked unlisted, private, and direct could be displayed publicly
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue