It’s not completely pointless, but probably smart to sanitize, because of the following situations:
- What’s the certainty that the SVGs only come from you directly?
- Can you guarantee that the SVGs won’t be intercepted during upload?
Redundancies for keeping your site secure are generally recommended.
I don’t know that wp_kses() is the best for sanitizing SVGs though. I’d reference Safe SVG and see how that sanitizes.
Related Posts:
- Allow only 1 taxonomy per custom post type [duplicate]
- Custom plugin: Trying to show saved data on frontend
- Fatal error: Call to undefined function plugin_dir_path()
- How to make WordPress plugin check for database changes and then do something?
- How to change date language without changing the entire site language?
- How to use copy() function and paste file in /wp-content/themes directory
- OOP Plugin Development. Including external object
- Authenticating to WordPress, using my own authentication two-factor system
- wordpress custom endpoint multiple params
- Problem with WordPress Ajax form
- Am I not understanding plugins?
- Using Font Awesome as post thumbnail
- admin-ajax.php responding with 0
- Page Reloads Before AJAX Request Finishes
- Add htaccess rules with insert_with_markers at beginning of htaccess
- How to restrict wp generate attachment metadata() to certain intermediate image sizes
- Insert array data on plugin activation
- WordPress php filter admin_body_class not working
- Adding Default Settings to Theme My Login plugin
- Append HTML Using Shortcode
- Hide categories that are not used in the post type
- Automated Cart Update With Alert Box Each Time
- WooCommerce/WordPress: how hide entire table form after submit (Admin Dashboard)?
- How to sanitize any integer input field in wordpress?
- WordPress ajax doesn’t display object method on jQuery .change() function
- filter default query to show just selected level of child pages in wordpress
- How to make my custom widget appear within WordPress widgets? Plugin development
- How to auto fetch customer details in Woocommerce in checkout page
- Can’t upload image using media_sideload_image
- Adding widgets to my plugin page instead of WordPress dashboard
- How to insert data into database using wp cron job
- Access Child Class of Plugin Main Class Instance
- Font Awesome changing default WordPress Font
- Can’t print Yoast meta description into page template (syntax error, unexpected ‘.’) [closed]
- Download full html page with CSV export plugin
- Asynchronous multiple requests 401 Unauthorized
- Using data sent via AJAX in multiple functions on a WP plugin
- What does -> mean in WordPress?
- Usage of call back function of add_meta_box()
- Change product_base programmatically
- How to add the sidebar to all the pages except the home page? [closed]
- how to save checkbox data for custom setting?
- WordPress shortcode returns the data before
- Plugin development and composer
- How to Schedule Cronjobs for start of every month and year
- Set default Database Storage Engine when creating tables with plugins?
- custom post type with role Vendor
- Restrict characters in comment section
- Execute Jquery when a specific page in my plugin is loading
- How can I get plugin meta data without knowing the plugin folder?
- Flatten Responses returned via WP REST API via WP_Error for obfuscation
- How does add_option() function enable action hooks to fire right after actiavtion?
- Ajax on the Administration Side of plugin – wp_localize_script – how to pass value from JQuery to PHP function in class?
- Create plugin with custom page and template caused an error `Call to undefined function get_header()`
- WordPress can’t use ZipArchive
- How to change basename url for wp-admin?
- Only the first image uploads
- WordPress loading progess – wp-blog-header.php
- Illegal string offset checkbox
- Custom plugin: how do I call a PHP file if settings option is set to true?
- Trying to use a variable to set image width
- wp_update_post gives 500 internal error
- Trouble matching strings (titles) using wp_query
- How to identify which php file a plugin is using on page load?
- dashboard widget form not submit mails
- In a foreach loop, how can I add a meta value if it doesn’t exist?
- Looping through and combining calls to Woocommerce REST API
- Should I use wp_cache in my plugin to make it faster?
- register_setting not save checkbox
- How to import woocommerce custom fields data into another site?
- When I create a new custom post type, it replaces the old post type
- How does one make a URL return dynamic JSON with custom Content Type?
- Customizer textarea with script tag won’t work in live preview
- How to give custom roles the capability to edit one Menu instead of every Menu
- add menu page in loop menu order
- Add .php to end of all WordPress Pages (multisite)
- defined (‘ABSPATH’) false after AJAX post to other PHP-file
- Getting Member Data From WhishList Member on Register
- Private messaging – Getting and displaying the avatar/url of a message recipient
- global $post inside plugin query messes up every new post page in wp-admin
- wp_query (or hook) posts by date (id) in array then set post_type
- Chosen Select jquery Not Working in Plugin
- widget: input the px value from user and use it as inline style in widget function
- Custom post type single page return to listing page
- WordPress rewrite question
- Using Nonce for my Form
- Create new folder and upload files to custom folder via wp_handle_upload
- Issues separating my Plugin pages into different files
- SHARING TO FACEBOOK – FROM DYNAMICALLY GENERATED PAGE
- How to hide Ads From Certain Categories?
- why is kses removing semicolon from inline style?
- Custom taxonomy with page post type – WordPress
- Query posts by custom taxonomy slug in WP REST API?
- oneOf JSON Schema validation not properly working for custom post meta value?
- Too few arguments at registering new templates in my plugin
- I want to lists posts in wordpress to nearest location entered by the user
- Displaying custom meta box value in a custom post page
- how to check elementor is widget is active or loaded
- Create a custom plugin with dynamic child pages listing database records
- Cannot Access ACF Field Values via my Plugin