Version Description
Download this release
Release Info
Developer | sterlo |
Plugin | Scalable Vector Graphics (SVG) |
Version | 1.2 |
Comparing to | |
See all releases |
Code changes from version 1.1 to 1.2
- readme.txt +2 -0
- scalable-vector-graphics.php +2 -4
readme.txt
CHANGED
@@ -29,3 +29,5 @@ An example of using all attributes:
|
|
29 |
|
30 |
= 1.0 =
|
31 |
* I N C E P T I O N
|
|
|
|
29 |
|
30 |
= 1.0 =
|
31 |
* I N C E P T I O N
|
32 |
+
= 1.1 =
|
33 |
+
* Fixing a typo. This typo caused ONLY SVG files to be allowed to upload via the media uploader.
|
scalable-vector-graphics.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Scalable Vector Graphics (SVG)
|
4 |
* Plugin URI: http://sterlinghamilton.com/scalable-vector-graphics-plugin
|
5 |
* 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.
|
7 |
* Author: Sterling Hamilton
|
8 |
* Author URI: http://www.sterlinghamilton.com
|
9 |
* License: GPLv2 or later
|
@@ -54,12 +54,10 @@ class scalable_vector_graphics {
|
|
54 |
$content .= '</iframe>';
|
55 |
break;
|
56 |
case 'embed':
|
|
|
57 |
$content .= '<embed src="' . $atts[ 'src' ] . '" width="' . $atts[ 'width' ] . '" height="' . $atts[ 'height' ] . '" ';
|
58 |
$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";
|
62 |
-
break;
|
63 |
}
|
64 |
|
65 |
return $content;
|
3 |
* Plugin Name: Scalable Vector Graphics (SVG)
|
4 |
* Plugin URI: http://sterlinghamilton.com/scalable-vector-graphics-plugin
|
5 |
* 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.2
|
7 |
* Author: Sterling Hamilton
|
8 |
* Author URI: http://www.sterlinghamilton.com
|
9 |
* License: GPLv2 or later
|
54 |
$content .= '</iframe>';
|
55 |
break;
|
56 |
case 'embed':
|
57 |
+
default:
|
58 |
$content .= '<embed src="' . $atts[ 'src' ] . '" width="' . $atts[ 'width' ] . '" height="' . $atts[ 'height' ] . '" ';
|
59 |
$content .= 'type="image/svg+xml" pluginspage="http://www.adobe.com/svg/viewer/install/" style="' . $atts[ 'style' ] . '" /> ';
|
60 |
break;
|
|
|
|
|
|
|
61 |
}
|
62 |
|
63 |
return $content;
|