Version Description
Download this release
Release Info
Developer | sterlo |
Plugin | Scalable Vector Graphics (SVG) |
Version | 2.1.1 |
Comparing to | |
See all releases |
Code changes from version 2.0.1 to 2.1.1
- scalable-vector-graphics.php +1 -15
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: 2.
|
7 |
* Author: Sterling Hamilton
|
8 |
* Author URI: http://sterlinghamilton.com
|
9 |
* License: GPLv2 or later
|
@@ -33,20 +33,6 @@ class scalable_vector_graphics {
|
|
33 |
add_filter( 'upload_mimes', array( &$this, 'allow_svg_uploads' ) );
|
34 |
}
|
35 |
|
36 |
-
private function _sanitize_input( $input ) {
|
37 |
-
if( is_scalar( $input ) ) {
|
38 |
-
return wp_kses( $input );
|
39 |
-
} else {
|
40 |
-
$this->_error( 'Unable to sanitize given input: Not scalar: integer, float, string or boolean.' );
|
41 |
-
}
|
42 |
-
|
43 |
-
return false;
|
44 |
-
}
|
45 |
-
|
46 |
-
private function _error( $message ) {
|
47 |
-
return new WP_Error( __CLASS__, __METHOD__ . __( $message ) );
|
48 |
-
}
|
49 |
-
|
50 |
public function allow_svg_uploads( $existing_mime_types = array() ) {
|
51 |
return $this->_add_mime_type( $existing_mime_types );
|
52 |
}
|
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: 2.1.1
|
7 |
* Author: Sterling Hamilton
|
8 |
* Author URI: http://sterlinghamilton.com
|
9 |
* License: GPLv2 or later
|
33 |
add_filter( 'upload_mimes', array( &$this, 'allow_svg_uploads' ) );
|
34 |
}
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
public function allow_svg_uploads( $existing_mime_types = array() ) {
|
37 |
return $this->_add_mime_type( $existing_mime_types );
|
38 |
}
|