WordPress.org

Plugin Directory

Changeset 530520


Ignore:
Timestamp:
04/13/12 02:58:30 (2 years ago)
Author:
sterlo
Message:

2.1.1 - removing cruft functions.

File:
1 edited

Legend:

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

    r530518 r530520  
    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: 2.0.1 
     6 * Version: 2.1.1 
    77 * Author: Sterling Hamilton 
    88 * Author URI: http://sterlinghamilton.com 
     
    3434    } 
    3535 
    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  
    5036    public function allow_svg_uploads( $existing_mime_types = array() ) { 
    5137        return $this->_add_mime_type( $existing_mime_types ); 
Note: See TracChangeset for help on using the changeset viewer.