WordPress.org

Plugin Directory

Changeset 402522


Ignore:
Timestamp:
06/29/11 18:20:25 (3 years ago)
Author:
sterlo
Message:

One less required parameter and a graceful fail over to a valid implementation type. Props @Phill

File:
1 edited

Legend:

Unmodified
Added
Removed
  • scalable-vector-graphics-svg/trunk/scalable-vector-graphics.php

    r395583 r402522  
    44 * Plugin URI: http://sterlinghamilton.com/scalable-vector-graphics-plugin 
    55 * Description: Scalable Vector Graphics are two-dimensional vector graphics, that can be both static and dynamic. This plugin allows your to easily use them on your site. 
    6  * Version: 1.1 
     6 * Version: 1.2 
    77 * Author: Sterling Hamilton 
    88 * Author URI: http://www.sterlinghamilton.com 
     
    5555            break; 
    5656            case 'embed': 
     57            default: 
    5758                $content .= '<embed src="' . $atts[ 'src' ] . '" width="' . $atts[ 'width' ] . '" height="' . $atts[ 'height' ] . '" '; 
    5859                $content .= 'type="image/svg+xml" pluginspage="http://www.adobe.com/svg/viewer/install/" style="' . $atts[ 'style' ] . '" /> '; 
    59             break; 
    60             default: 
    61                 $content .= "\n" . '<!-- Invalid value ignored: ' . $atts[ 'type' ] . ' -->' . "\n"; 
    6260            break; 
    6361        } 
Note: See TracChangeset for help on using the changeset viewer.