Changeset 1594911
- Timestamp:
- 02/13/2017 12:34:36 PM (9 years ago)
- Location:
- f2-tumblr-widget
- Files:
-
- 4 edited
- 1 copied
-
tags/0.2.8 (copied) (copied from f2-tumblr-widget/trunk)
-
tags/0.2.8/README.txt (modified) (3 diffs)
-
tags/0.2.8/f2-tumblr.php (modified) (4 diffs)
-
trunk/README.txt (modified) (3 diffs)
-
trunk/f2-tumblr.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
f2-tumblr-widget/tags/0.2.8/README.txt
r1474571 r1594911 4 4 Tags: widget, tumblr, feed 5 5 Requires at least: 3.3 6 Tested up to: 4. 5.37 Stable tag: 0.2. 76 Tested up to: 4.7.2 7 Stable tag: 0.2.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 49 49 to plain quotes, unless the 'Replace "special" characters' option is unticked. 50 50 51 = My blog has an SSL certificate (https://) and I'm getting 'unsecured content' warnings? = 52 53 By default, this widget pulls data from Tumblr over http; this results in 54 displayed images also using this protocol. If you have an SSL certificate 55 installed on your blog, you may see warnings from your browser about 'unsecured 56 content' which refers to the images from Tumblr. 57 58 If you change your Tumblr URL setting to be preceded by 'https://', the widget 59 will access Tumblr over https and the resulting images will also be served 60 securely. 61 62 This will one day become the default approach, but for now is left up to the 63 user as it can potentially cause problems on badly configured web servers. 64 51 65 == Screenshots == 52 66 … … 54 68 55 69 == Changelog == 70 71 = 0.2.8 = 72 * Will how honour the HTTP protocol of the source tumblr, if provided. This 73 means that if you have an SSL certificate on your blog, you can avoid 74 the widget generating 'unsecured content' warnings by providing your Tumblr 75 URL with a 'https://' prefix. 56 76 57 77 = 0.2.7 = -
f2-tumblr-widget/tags/0.2.8/f2-tumblr.php
r1288057 r1594911 15 15 * Plugin URI: http://www.fsquared.co.uk/software/f2-tumblr/ 16 16 * Description: Widget to display recent posts from a tumblr blog 17 * Version: 0.2. 717 * Version: 0.2.8 18 18 * Author: fsquared limited 19 19 * Author URI: http://www.fsquared.co.uk … … 172 172 173 173 // So, fetch the data from Tumblr 174 $tumblr_url = 'http://' .$local_params['tumblr']174 $tumblr_url = $local_params['tumblr'] 175 175 . '/api/read?num=' . $local_params['posts']; 176 176 if ( 'all' != $local_params['post_type'] ) { … … 266 266 } 267 267 268 // The provided URL needs to be free of things like protocol268 // The provided URL needs to be cleaned up a little 269 269 if ( 'http' == mb_substr( $new_instance['tumblr'], 0, 4 ) ) { 270 270 $entered_url = $new_instance['tumblr']; … … 272 272 $entered_url = 'http://' . $new_instance['tumblr']; 273 273 } 274 $instance['tumblr'] = parse_url( $entered_url, PHP_URL_HOST ); 274 $instance['tumblr'] = parse_url( $entered_url, PHP_URL_SCHEME ) 275 . '://' . parse_url( $entered_url, PHP_URL_HOST ); 275 276 276 277 // And selections -
f2-tumblr-widget/trunk/README.txt
r1474571 r1594911 4 4 Tags: widget, tumblr, feed 5 5 Requires at least: 3.3 6 Tested up to: 4. 5.37 Stable tag: 0.2. 76 Tested up to: 4.7.2 7 Stable tag: 0.2.8 8 8 License: GPLv2 or later 9 9 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 49 49 to plain quotes, unless the 'Replace "special" characters' option is unticked. 50 50 51 = My blog has an SSL certificate (https://) and I'm getting 'unsecured content' warnings? = 52 53 By default, this widget pulls data from Tumblr over http; this results in 54 displayed images also using this protocol. If you have an SSL certificate 55 installed on your blog, you may see warnings from your browser about 'unsecured 56 content' which refers to the images from Tumblr. 57 58 If you change your Tumblr URL setting to be preceded by 'https://', the widget 59 will access Tumblr over https and the resulting images will also be served 60 securely. 61 62 This will one day become the default approach, but for now is left up to the 63 user as it can potentially cause problems on badly configured web servers. 64 51 65 == Screenshots == 52 66 … … 54 68 55 69 == Changelog == 70 71 = 0.2.8 = 72 * Will how honour the HTTP protocol of the source tumblr, if provided. This 73 means that if you have an SSL certificate on your blog, you can avoid 74 the widget generating 'unsecured content' warnings by providing your Tumblr 75 URL with a 'https://' prefix. 56 76 57 77 = 0.2.7 = -
f2-tumblr-widget/trunk/f2-tumblr.php
r1288057 r1594911 15 15 * Plugin URI: http://www.fsquared.co.uk/software/f2-tumblr/ 16 16 * Description: Widget to display recent posts from a tumblr blog 17 * Version: 0.2. 717 * Version: 0.2.8 18 18 * Author: fsquared limited 19 19 * Author URI: http://www.fsquared.co.uk … … 172 172 173 173 // So, fetch the data from Tumblr 174 $tumblr_url = 'http://' .$local_params['tumblr']174 $tumblr_url = $local_params['tumblr'] 175 175 . '/api/read?num=' . $local_params['posts']; 176 176 if ( 'all' != $local_params['post_type'] ) { … … 266 266 } 267 267 268 // The provided URL needs to be free of things like protocol268 // The provided URL needs to be cleaned up a little 269 269 if ( 'http' == mb_substr( $new_instance['tumblr'], 0, 4 ) ) { 270 270 $entered_url = $new_instance['tumblr']; … … 272 272 $entered_url = 'http://' . $new_instance['tumblr']; 273 273 } 274 $instance['tumblr'] = parse_url( $entered_url, PHP_URL_HOST ); 274 $instance['tumblr'] = parse_url( $entered_url, PHP_URL_SCHEME ) 275 . '://' . parse_url( $entered_url, PHP_URL_HOST ); 275 276 276 277 // And selections
Note: See TracChangeset
for help on using the changeset viewer.