开发者 |
enshrined
10up jeffpaul |
---|---|
更新时间 | 2024年3月28日 21:41 |
PHP版本: | 7.4 及以上 |
WordPress版本: | 6.5 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
add_filter( 'safe_svg_optimizer_enabled', '__return_true' );
/wp-content/plugins/
directoryYes, this can be done using the svg_allowed_attributes
and svg_allowed_tags
filters.
They take one argument that must be returned. See below for examples:
add_filter( 'svg_allowed_attributes', function ( $attributes ) {
// Do what you want here...
// This should return an array so add your attributes to
// to the $attributes array before returning it. E.G.
$attributes[] = 'target'; // This would allow the target="" attribute.
return $attributes;
} );
add_filter( 'svg_allowed_tags', function ( $tags ) {
// Do what you want here...
// This should return an array so add your tags to
// to the $tags array before returning it. E.G.
$tags[] = 'use'; // This would allow the element.
return $tags;
} );
download-artifact
from v3 to v4 (props @iamdharmesh, @jeffpaul via #181).lee-dohm/no-response
with actions/stale
to help with closing no-response/stale issues (props @jeffpaul, @dkotter via #183).webpack-dev-middleware
from 5.3.3 to 5.3.4 (props @dependabot, @dkotter via #185).express
from 4.18.2 to 4.19.2 (props @dependabot, @dkotter via #188).svg_dimensions
function to be more performant (props @sksaju, @cjyabraham, @bmarshall511, @Hercilio1, @darylldoyle via #154, #174).axios
from 0.25.0 to 1.6.2 and @wordpress/scripts
from 26.0.0 to 26.18.0 (props @dependabot, @ravinderk via #166).follow-redirects
from 1.15.3 to 1.15.6 and ip
from 1.1.8 to 1.1.9 (props @dependabot, @dkotter via #169, #177).theme.json
(props @tobeycodes, @dkotter via #161).apiVersion
3 for our SVG Icon block (props @fabiankaegy, @ravinderk, @jeffpaul, @dkotter via #133).fill-rule
attribute (props @zamanq, @jeffpaul, @iamdharmesh via #152).postcss
from 8.4.20 to 8.4.31 (props @dependabot, @faisal-alvi via #155).@cypress/request
from 2.88.12 to 3.0.1 and cypress
from 10.11.0 to 13.3.0 (props @dependabot, @ravinderk via #156).@babel/traverse
from 7.20.12 to 7.23.2 (props @dependabot, @iamdharmesh via #158).safe_svg_optimizer_enabled
filter (props @gsarig, @peterwilsoncc, @Sidsector9, @darylldoyle, @faisal-alvi, @dkotter, @ravinderk via #79, #145).Active
to Stable
(props @Sidsector9, @iamdharmesh via #100).class_exists
check (props @szepeviktor, @iamdharmesh via #120).SimpleXML
exists before using it (props @sdmtt, @faisal-alvi via #140).semver
from 5.7.1 to 5.7.2 (props @dependabot via #134).word-wrap
from 1.2.3 to 1.2.5 (props @dependabot via #141).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).@wordpress
npm package dependencies (props @ggutenberg, @Sidsector9 via #108).got
from 10.7.0 to 11.8.5 (props @dependabot via #83).@wordpress/env from
4.9.0 to 5.6.0 (props @dependabot via #83).simple-git
from 3.9.0 to 3.16.0 (props @dependabot via #88, #99).loader-utils
from 2.0.2 to 2.0.4 (props @dependabot via #92).json5
from 1.0.1 to 1.0.2 (props @dependabot via #91).decode-uri-component
from 0.2.0 to 0.2.2 (props @dependabot via #93).markdown-it
from 12.0.4 to 12.3.2 (props @dependabot, @peterwilsoncc via #94).@wordpress/scripts
from 19.2.4 to 25.1.0 (props @dependabot, @peterwilsoncc via #94).http-cache-semantics
from 4.1.0 to 4.1.1 (props @dependabot, @peterwilsoncc via #101).webpack
from 5.75.0 to 5.76.1 (props @dependabot, @faisal-alvi via #103).svg-sanitizer
from 0.15.2 to 0.16.0 (props @darylldoyle, @faisal-alvi, @Cyxow via #105).