Skip to content

Latest commit

 

History

History
489 lines (386 loc) · 40.9 KB

File metadata and controls

489 lines (386 loc) · 40.9 KB

Changelog

All notable changes to this project will be documented in this file, per the Keep a Changelog standard, and will adhere to Semantic Versioning.

2.4.0 - 2025-09-22

Added

Changed

  • Added $attachment_id argument to filters safe_svg_use_width_height_attributes and safe_svg_dimensions (props @roborourke, @dkotter via #278).

Fixed

  • Inconsistent or incorrect data type for $svg argument in the filters safe_svg_use_width_height_attributes and safe_svg_dimensions (props @roborourke, @dkotter via #278).

2.3.3 - 2025-08-13

Security

Developer

2.3.2 - 2025-07-21

Note that this release bumps the WordPress minimum version from 6.5 to 6.6.

Fixed

Changed

Security

  • Bump ws from 7.5.10 to 8.18.0, @wordpress/scripts from 27.9.0 to 30.6.0, nanoid from 3.3.7 to 3.3.8 and mocha from 10.2.0 to 11.0.1 (props @dependabot, @peterwilsoncc via #245).
  • Bump @babel/runtime from 7.23.9 to 7.27.0, axios from 1.7.4 to 1.8.4, cookie from 0.4.2 to 0.7.1, express from 4.21.0 to 4.21.2 and @wordpress/e2e-test-utils-playwright from 0.26.0 to 1.20.0 (props @dependabot, @dkotter via #250).
  • Bump http-proxy-middleware from 2.0.6 to 2.0.9 (props @dependabot, @iamdharmesh via #253).
  • Bump tar-fs from 3.0.8 to 3.0.9 (props @dependabot, @dkotter via #258).
  • Bump bytes from 3.0.0 to 3.1.2 and compression from 1.7.4 to 1.8.1 (props @dependabot, @dkotter via #265).

Developer

  • Update all third-party actions our workflows rely on to use versions based on specific commit hashes (props @dkotter, @jeffpaul via #248).
  • Updated GitHub Action workflow permissions (props @dkotter, @jeffpaul via #262).

2.3.1 - 2024-12-05

Fixed

2.3.0 - 2024-11-25

Note that this release bumps the WordPress minimum version from 6.4 to 6.5.

Added

Changed

Fixed

Security

Developer

  • Bump @10up/cypress-wp-utils from 0.2.0 to 0.4.0, @wordpress/env from 9.2.0 to 10.12.0, cypress from 13.3.0 to 13.16.0 and cypress-mochawesome-reporter from 3.4.0 to 3.8.2. Downgrades @wordpress/scripts to 27.9.0. Add additional E2E tests (props @dkotter, @Lewiscowles1986 via #234).
  • Update repo badges, add banner image (props @jeffpaul, @dkotter via #224, #229).

2.2.6 - 2024-08-28

Note that this release bumps the WordPress minimum version from 5.7 to 6.4.

Changed

Security

Developer

2.2.5 - 2024-06-27

Added

  • New filter, safe_svg_current_user_can_upload, allowing more control over who can upload SVG files (props @dkotter, @iamdharmesh via #193).

Fixed

Developer

2.2.4 - 2024-03-28

Changed

Fixed

Security

2.2.3 - 2024-03-20

Added

Changed

Fixed

Security

2.2.2 - 2023-11-21

Changed

Fixed

  • Ensure CSS applies properly to the SVG Icon block when added via theme.json (props @tobeycodes, @dkotter via #161).

2.2.1 - 2023-10-23

Changed

Fixed

Security

2.2.0 - 2023-08-21

Added

Changed

Fixed

Security

  • Bump semver from 5.7.1 to 5.7.2 (props @dependabot via #134).
  • Bump word-wrap from 1.2.3 to 1.2.5 (props @dependabot via #141).
  • Bump tough-cookie from 4.1.2 to 4.1.3 and @cypress/request from 2.88.10 to 2.88.12 (props @dependabot via #146).

2.1.1 - 2023-04-05

Changed

Fixed

2.1.0 - 2023-03-22

Added

Changed

Security

2.0.3 - 2022-09-01

Added

Fixed

2.0.2 - 2022-06-27

Added

Changed

  • Bump WordPress version "tested up to" 6.0 (props @dkotter via #65).

Removed

2.0.1 - 2022-04-19

Changed

Fixed

2.0.0 - 2022-04-06

Added

  • New filter, safe_svg_use_width_height_attributes, that can be used to change the order of attributes we use to determine the SVG dimensions (props @dkotter, @peterwilsoncc via #43).

Changed

Fixed

  • Use the viewBox attributes first for image dimensions. Ensure we don't use image dimensions that end with percent signs (props @dkotter, @peterwilsoncc via #43).
  • Make sure we use the full size SVG dimensions rather than the requested size, to avoid wrong sizes being used and duplicate height and width attributes (props @dkotter, @cadic via #44).
  • Ensure the tmp_name and name properties exist before we use them (props @dkotter, @aksld via #46).

1.9.10 - 2022-02-23

Note that this release bumps the WordPress minimum version from 4.0 to 4.7 and the PHP minimum version from 5.6 to 7.0.

Changed

Fixed

1.9.9 - 2020-05-07

Fixed

  • Issue where 100% width is accidentally converted to 100px width (props @joehoyle).

1.9.8 - 2020-05-07

Changed

  • Underlying library update.

1.9.7 - 2019-12-10

Changed

  • Underlying library update.

1.9.6 - 2019-11-07

Security

  • Underlying library update that fixes a security issue.

1.9.5 - 2019-11-04

Security

  • Underlying library update that fixes some security issues.

1.9.4 - 2019-08-21

Fixed

  • Bug causing lots of error log output to do with safe_svg::fix_direct_image_output().

1.9.3 - 2019-02-19

Fixed

  • Bug causing 0 height and width SVGs.

1.9.2 - 2019-02-14

Fixed

  • Warning about an Illegal string offset.
  • Issue if something other than a WP_Post object is passed in via the wp_get_attachment_image_attributes filter.

1.9.1 - 2019-01-29

Fixed

  • Warning that was being generated by a change made in 1.9.0.

1.9.0 - 2019-01-03

Changed

  • If an image is the correct ratio, allow skipping of the crop popup when setting header/logo images with SVGs.

1.8.1 - 2018-11-22

Changed

  • Don't let errors break upload if uploading an empty file.

Fixed

  • Featured image display in Gutenberg. Props @dmhendricks :)

1.8.0 - 2018-11-04

Added

  • Pull SVG dimensions from the width/height or viewbox attributes of the SVG.
  • role="img" attribute to SVGs.

1.7.1 - 2018-10-01

Changed

  • Underlying lib and added new filters for filtering allowed tags and attributes.

1.7.0 - 2018-10-01

Added

  • Allow devs to filter tags and attrs within WordPress.

1.6.1 - 2018-03-17

Changed

  • Images will now use the size chosen when inserted into the page rather than default to 2000px everytime.

1.6.0 - 2017-12-20

Added

  • Fairly big new feature - The library now allows <use> elements as long as they don't reference external files!

Fixed

  • You can now also embed safe image types within the SVG and not have them stripped (PNG, GIF, JPG).

1.5.3 - 2017-11-16

Fixed

  • 1.5.2 introduced an issue that can freeze the media library. This fixes that issue. Sorry!

1.5.2 - 2017-11-15

Changed

  • Tested with 4.9.0.

Fixed

  • Issue with SVGs when regenerating media.

1.5.1 - 2017-08-21

Fixed

  • PHP strict standards warning.

1.5.0 - 2017-06-20

Changed

  • Library update.
  • role, aria- and data- attributes are now whitelisted to improve accessibility.

1.4.5 - 2017-06-18

Changed

  • Library update.

Fixed

  • Issues with defining the size of an SVG.

1.4.4 - 2017-06-07

Fixed

  • SVGs now display as featured images in the admin area.

1.4.3 - 2017-03-06

Added

  • WordPress 4.7.3 Compatibility.

Changed

  • Expanded SVG previews in media library.

1.4.2 - 2017-02-26

Added

  • Check / fix for when mb_* functions are not available.

1.4.1 - 2017-02-23

Changed

  • Underlying library to allow attributes/tags in all case variations.

1.4.0 - 2017-02-21

Added

  • Ability to preview SVG on both grid and list view in the wp-admin media area.

Changed

  • Underlying library version.

1.3.4 - 2017-02-20

Fixed

  • SVGZ uploads failing and not sanitising correctly.

1.3.3 - 2017-02-15

Changed

  • Allow SVGZ uploads.

1.3.2 - 2017-01-27

Fixed

1.3.1 - 2016-12-01

Changed

  • Underlying library version.

1.3.0 - 2016-10-10

Changed

  • Minify SVGs after cleaning so they can be loaded correctly through file_get_contents.

1.2.0 - 2016-02-27

Added

  • Support for camel case attributes such as viewBox.

1.1.1 - 2016-07-06

Fixed

  • Issue with empty svg elements self-closing.

1.1.0 - 2015-07-04

Added

  • I18n.
  • da, de, en, es, fr, nl, and ru translations.

Fixed

  • Issue with filename not being pulled over on failed uploads.

1.0.0 - 2015-07-03

  • Initial Release.