Leírás
This plugin gives you the ability to allow SVG uploads whilst making sure that they’re sanitized to stop SVG/XML vulnerabilities affecting your site.
Telepítés
INSTALL „SVG Enabler” FROM WITHIN WORDPRESS
- Visit the plugins page within your dashboard and select ‘Add New’;
- Search for ‘SVG Enabler’;
- Activate SVG Enabler from your Plugins page;
- Go to ‘after activation’ below.
INSTALL „SVG Enabler” MANUALLY
- Upload the ‘svg-enabler’ folder to the /wp-content/plugins/ directory;
- Activate the SVG Enabler through the ‘Plugins’ menu in WordPress;
- Go to ‘after activation’ below.
AFTER ACTIVATION
- SVG Enabler is a ‘set and forget’ plugin. There are no settings fields as your site’s scheduled posts will be automatically checked when the plugin is installed and activated.
- You’re done!
GYIK
-
Yes, this can be done using the
svg_allowed_attributes
andsvg_allowed_tags
filters. They take one argument that must be returned.add_filter( 'optimisthub_svg_enabler_allowed_attributes', function ( $attributes ) { $attributes[] = 'target'; // This would allow the target="" attribute. return $attributes; } ); add_filter( 'optimisthub_svg_enabler_allowed_tags', function ( $tags ) { $tags[] = 'use'; // This would allow the <use> element. return $tags; } );
Vélemények
Nincsenek értékelések erről a bővítményről.
Közreműködők és fejlesztők
“SVG Enabler” egy nyílt forráskódú szoftver. A bővítményhez a következő személyek járultak hozzá:
Közreműködők“SVG Enabler” fordítása a saját nyelvünkre.
Érdekeltek vagyunk a fejlesztésben?
Browse the code, check out the SVN repository, or subscribe to the development log by RSS.
Változási napló
1.0.3
- Author name issue.
1.0.2 – 1.0.1
- Github Action
1.0.0
- Stable version released