block_core_gallery_render_dynamic_image()Renders a single `core/image` block for a Gallery block running in dynamic mode, applying the gallery-wide settings that affect how an image renders.
get_block_wrapper_attributes()Generates a string of attributes by applying to the current block being rendered all of the features that the block supports.
2648functionsafecss_filter_attr($css,$deprecated=''){2649if(!empty($deprecated)){2650_deprecated_argument(__FUNCTION__,'2.8.1');// Never implemented.2651}26522653$css=wp_kses_no_null($css);2654$css=str_replace(array("\n","\r","\t"),'',$css);26552656$allowed_protocols=wp_allowed_protocols();26572658/** @todo Parse enough CSS to split rules without breaking on things like quoted strings. */2659$css_array=explode(';',trim($css));26602661/**2662 * Filters the list of allowed CSS attributes.2663 *2664 * @since 2.8.12665 * @since 7.1.0 Added support for SVG presentation attributes.2666 *2667 * @param string[] $attr Array of allowed CSS attributes.2668 */2669$allowed_attr=apply_filters(2670'safe_style_css',2671array(2672'background',2673'background-color',2674'background-image',2675'background-position',2676'background-repeat',2677'background-size',2678'background-attachment',2679'background-blend-mode',26802681'border',2682'border-radius',2683'border-width',2684'border-color',2685'border-style',2686'border-right',2687'border-right-color',2688'border-right-style',2689'border-right-width',2690'border-bottom',2691'border-bottom-color',2692'border-bottom-left-radius',2693'border-bottom-right-radius',2694'border-bottom-style',2695'border-bottom-width',2696'border-bottom-right-radius',2697'border-bottom-left-radius',2698'border-left',2699'border-left-color',2700'border-left-style',2701'border-left-width',2702'border-top',2703'border-top-color',2704'border-top-left-radius',2705'border-top-right-radius',2706'border-top-style',2707'border-top-width',2708'border-top-left-radius',2709'border-top-right-radius',27102711'border-spacing',2712'border-collapse',2713'caption-side',27142715'columns',2716'column-count',2717'column-fill',2718'column-gap',2719'column-rule',2720'column-span',2721'column-width',27222723'display',27242725'color',2726'filter',2727'font',
History
Introduced in 2.8.1. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
7.1.0
Extended gradient support to allow any single-level nested function. Added support for transform functions, clip-path basic shapes, and URLs in the SVG element reference properties.from the docblock
6.9.0
Added support for white-space.from the docblock
6.6.0
Added support for grid-column, grid-row, and container-type.from the docblock
6.5.0
Added support for background-repeat.from the docblock
6.4.0
Added support for writing-mode.from the docblock
6.3.0
Extended support for filter to accept a URL and added support for repeat(). Added support for box-shadow.from the docblock
6.2.0
Added support for aspect-ratio, position, top, right, bottom, left, and z-index CSS properties.from the docblock
6.1.0
Added support for min(), max(), minmax(), clamp(), nested var() values, and assigning values to CSS variables. Added support for object-fit, gap, column-gap, row-gap, and flex-wrap. Extended margin-* and padding-* support for logical properties.from the docblock
5.8.0
Added support for calc() and var() values.from the docblock
5.7.1
Added support for object-position.from the docblock
5.3.1
Added support for gradient backgrounds.from the docblock
5.3.0
Added support for grid, flex and column layout properties. Extended background-* support for individual properties.from the docblock
5.2.0
Added support for background-position and grid-template-columns.from the docblock
5.1.0
Added support for text-transform.from the docblock
5.0.0
Added support for background-image.from the docblock
4.6.0
Added support for list-style-type.from the docblock
4.4.0
Added support for min-height, max-height, min-width, and max-width.from the docblock
2.8.1
Introduced.from the docblock
About this page
Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/kses.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.