GithubHelp home page GithubHelp logo

medfreeman / wordpress-plugin-scalable-vector-graphics Goto Github PK

View Code? Open in Web Editor NEW

This project forked from grok/wordpress-plugin-scalable-vector-graphics

0.0 3.0 1.0 54 KB

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.

Home Page: http://sterlinghamilton.com/scalable-vector-graphics-plugin

License: GNU General Public License v2.0

PHP 100.00%

wordpress-plugin-scalable-vector-graphics's Introduction

=== Scalable Vector Graphics (SVG) ===
Contributors: sterlo
Donate link: http://www.sterlinghamilton.com/projects/scalable-vector-graphics/
Tags: svg, scalable, vector, mime, type, image, graphic, file, upload
Requires at least: 3.0
Tested up to: 4.5.3
Stable tag: trunk
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

SVG files are two-dimensional vector graphics, that can be both static and dynamic. This plugin allows your to easily use them on your site.

== Description ==

SVG files are two-dimensional vector graphics, that can be both static and dynamic. This plugin allows you to easily use them on your site.

The main project page is located here: [http://www.sterlinghamilton.com/projects/scalable-vector-graphics/](http://www.sterlinghamilton.com/projects/scalable-vector-graphics/ "Scalable Vector Graphics (SVG) | Sterling Hamilton")

Warning: Understanding that uploading any file to the system is a potential security risk, it is strongly recommended to only let trusted users to have upload privileges.

Resources for understanding security risks:

* http://security.stackexchange.com/questions/11384/exploits-or-other-security-risks-with-svg-upload
* https://www.youtube.com/watch?v=v-a77QdoK2I

== Installation ==

= Manually =
1. Upload scalable-vector-graphics-svg into your plugins directory.
1. Activate the plugin through the 'Plugins' menu in WordPress.
1. Use SVG files just like you would use a normal image file.

= Plugin Manager =
1. Go to your plugin manager, located generally at `/wp-admin/plugins.php`.
1. Click "Add New".
1. Search for "Scalable Vector Graphics SVG".
1. Click "Install Now".
1. Click "Activate Plugin".

= WP CLI =
1. Be in the root of your WordPress installation.
1. Run `wp plugin install scalable-vector-graphics-svg`.
1. Run `wp activate scalable-vector-graphics-svg`.

== Changelog ==

= 3.2 =
* Created End User styles to allow for the front of the site to display SVG files properly.
= 3.1 =
* Fix mime-type issues. Changed too much too quickly. BAD DEVELOPER.
= 3.0 =
* Removed the sanitizer. This plugin isn't about security. It's about letting you use SVG files easily.
* Added more styling to improve Media Manager, including adjustments Grid View and Listing View
* Added additional styling to allow for SVG files to show for Featured Images.
* Reduced overall code footprint and complexity.
* Added code documentation.
* Resolved several serverside issues you may have been encountering having to do with security related stuff.
= 2.3.1 =
* Added inline styling to the administration area so SVG attachments will show up in list/grid views.
* Props to shield-9 (Daisuke Takahashi) for the code.
= 2.2.1 =
* Added a security library to scan all uploaded SVG files. It has a list of "expected" elements and attributes, if the file contains thing it does not expect, it removes them. This will include things like Javascript.
* The security cannot be perfect and it is recommended to only provide upload privileges to trusted users.
* Props to thedwards for bringing this to my attention.
= 2.0 =
* I broke everything. I'm sorry, but it had to be done.
* Basically how I had approached the problem before was wrong. It is now being done properly using the correct mime/type.
* Shortcodes are no longer needed, you can now use SVG files as you would any other image.
* Previews now show up in the media area for SVG files.
* IMPORTANT: Anyone using the version prior to 2.0 were using shortcodes to display SVG files. You will have to go back and replace those shortcodes with actual image tags. If you're not familiar with HTML, you can just delete the shortcode out of the page/post and then insert the SVG file as you would any other image.
* Thanks to the guys over at mozilla.org for kicking me in the butt to actually fix this thing: https://bugzilla.mozilla.org/show_bug.cgi?id=721830
= 1.2 =
* One less required parameter and a graceful fail over to a valid implementation type. Props @Phil
= 1.1 =
* Fixing a typo. This typo caused ONLY SVG files to be allowed to upload via the media uploader.
= 1.0 =
* I N C E P T I O N

wordpress-plugin-scalable-vector-graphics's People

Contributors

grok avatar shield-9 avatar

Watchers

 avatar  avatar  avatar

Forkers

rumur

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.