Plugin Directory

Changeset 922315


Ignore:
Timestamp:
05/28/2014 09:29:49 AM (12 years ago)
Author:
fsquared
Message:

minor bug fixes for v0.2.1 - see README.txt

Location:
f2-tumblr-widget
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • f2-tumblr-widget/tags/0.2.1/README.txt

    r918021 r922315  
    55Requires at least: 3.3
    66Tested up to: 3.9
    7 Stable tag: 0.2.0
     7Stable tag: 0.2.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4545== Changelog ==
    4646
     47= 0.2.1 =
     48* Added CSS to ensure that media posts with short text are properly separated.
     49* Improved handling of the provided Tumblr URL to be less picky.
     50
    4751= 0.2.0 =
    4852* First public release.
  • f2-tumblr-widget/tags/0.2.1/css/widget.css

    r918021 r922315  
    66.f2-tumblr-post h3 {
    77  margin-bottom: 5px;
     8  clear: both;
    89}
    910
  • f2-tumblr-widget/tags/0.2.1/f2-tumblr.php

    r918021 r922315  
    246246        // Clean up user text inputs
    247247        $instance['title'] = strip_tags( $new_instance['title'] );
    248         $instance['tumblr'] = strip_tags( $new_instance['tumblr'] );
    249248        $instance['post_tag'] = strip_tags( $new_instance['post_tag'] );
    250249
     
    258257            $instance['slide_speed'] = intval( $new_instance['slide_speed'] );
    259258        }
     259
     260        // The provided URL needs to be free of things like protocol
     261        if ( 'http' == mb_substr( $new_instance['tumblr'], 0, 4 ) ) {
     262            $entered_url = $new_instance['tumblr'];
     263        } else {
     264            $entered_url = 'http://' . $new_instance['tumblr'];
     265        }
     266        $instance['tumblr'] = parse_url( $entered_url, PHP_URL_HOST );
    260267
    261268        // And selections
  • f2-tumblr-widget/trunk/README.txt

    r918021 r922315  
    55Requires at least: 3.3
    66Tested up to: 3.9
    7 Stable tag: 0.2.0
     7Stable tag: 0.2.1
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4545== Changelog ==
    4646
     47= 0.2.1 =
     48* Added CSS to ensure that media posts with short text are properly separated.
     49* Improved handling of the provided Tumblr URL to be less picky.
     50
    4751= 0.2.0 =
    4852* First public release.
  • f2-tumblr-widget/trunk/css/widget.css

    r918021 r922315  
    66.f2-tumblr-post h3 {
    77  margin-bottom: 5px;
     8  clear: both;
    89}
    910
  • f2-tumblr-widget/trunk/f2-tumblr.php

    r918021 r922315  
    246246        // Clean up user text inputs
    247247        $instance['title'] = strip_tags( $new_instance['title'] );
    248         $instance['tumblr'] = strip_tags( $new_instance['tumblr'] );
    249248        $instance['post_tag'] = strip_tags( $new_instance['post_tag'] );
    250249
     
    258257            $instance['slide_speed'] = intval( $new_instance['slide_speed'] );
    259258        }
     259
     260        // The provided URL needs to be free of things like protocol
     261        if ( 'http' == mb_substr( $new_instance['tumblr'], 0, 4 ) ) {
     262            $entered_url = $new_instance['tumblr'];
     263        } else {
     264            $entered_url = 'http://' . $new_instance['tumblr'];
     265        }
     266        $instance['tumblr'] = parse_url( $entered_url, PHP_URL_HOST );
    260267
    261268        // And selections
Note: See TracChangeset for help on using the changeset viewer.