|
3 | 3 | * Plugin Name: Shariff for Wordpress |
4 | 4 | * Plugin URI: http://www.heise.de/newsticker/meldung/c-t-entwickelt-datenschutzfreundliche-Social-Media-Buttons-weiter-2466687.html |
5 | 5 | * Description: Shariff enables website users to share their favorite content without compromising their privacy. |
6 | | - * Version: 1.0.5 |
| 6 | + * Version: 1.0.6 |
7 | 7 | * Author: Heise Zeitschriften Verlag / Yannik Ehlert |
8 | 8 | * Author URI: http://www.heise.de |
9 | 9 | * Text Domain: shariff |
@@ -80,7 +80,8 @@ function shariffsharing($content) { |
80 | 80 | } |
81 | 81 | if (get_option('shariff_image','leer') != 'leer') { |
82 | 82 | if (strpos($content,'<img') !== false) { |
83 | | - $imgurls = explode("\"",explode(">",strstr($content,"<img"))[0]); |
| 83 | + $tmp=explode(">",strstr($content,"<img")); |
| 84 | + $imgurls = explode("\"",$tmp[0]); |
84 | 85 | $int = 0; |
85 | 86 | foreach($imgurls as $imgurl) { |
86 | 87 | $int = $int + 1; |
@@ -264,7 +265,6 @@ function save_details(){ |
264 | 265 | update_post_meta($post->ID, "shariff_enabled", $_POST["shariff_enabled"]); |
265 | 266 | } |
266 | 267 | add_action("admin_init", "select_init"); |
267 | | -add_action('save_post', 'shariff_save_checkbox' ); |
268 | 268 | add_action('admin_menu','shariffconfigmenu'); |
269 | 269 | add_action('admin_init','init_settings'); |
270 | 270 | add_action('init','init_locale'); |
|
0 commit comments