File: wp-includes/deprecated.php
-
functionwp_render_duotone_support()
Renders out the duotone stylesheet and SVG.
-
Build an array with CSS classes and inline styles defining the colors which will be applied to the navigation markup in the front-end.
-
functionwp_register_duotone_support()
Registers the style and colors block attributes for block types that support it.
-
functionwp_tinycolor_string_to_rgb()
Parses hex, hsl, and rgb CSS strings using the same regex as TinyColor v1.4.2 used in the JavaScript. Only colors output from react-color are implemented.
-
functionwp_get_duotone_filter_id()
Returns the prefixed id for the duotone filter for use as a CSS id.
-
functionwp_get_duotone_filter_property()
Returns the CSS filter property url to reference the rendered SVG.
-
functionwp_get_duotone_filter_svg()
Returns the duotone filter SVG string for the preset.
-
functionwp_tinycolor_bound01()
Takes input from [0, n] and returns it as [0, 1].
-
function_wp_tinycolor_bound_alpha()
Direct port of tinycolor’s boundAlpha function to maintain consistency with how tinycolor works.
-
functionwp_tinycolor_rgb_to_rgb()
Rounds and converts values of an RGB object.
-
functionwp_tinycolor_hue_to_rgb()
Helper function for hsl to rgb conversion.
-
functionwp_tinycolor_hsl_to_rgb()
Converts an HSL object to an RGB object with converted and rounded values.
-
Generates an inline style for a typography feature e.g. text decoration, text transform, and font style.
-
functionwp_img_tag_add_decoding_attr()
Adds `decoding` attribute to an `img` HTML tag.
-
Returns a string containing the SVGs to be referenced as filters (duotone).
-
functionwp_skip_spacing_serialization()
Checks whether serialization of the current block’s spacing properties should occur.
-
Renders the duotone filter SVG and returns the CSS filter property to reference the rendered SVG.
-
functionwp_skip_border_serialization()
Checks whether serialization of the current block’s border properties should occur.
-
Checks whether serialization of the current block’s dimensions properties should occur.
-
function_resolve_home_block_template()
Returns the correct template for the site’s home page.
-
Runs the theme.json webfonts handler.
-
Renders the SVG filters supplied by theme.json.
-
Parses a block template and removes the theme attribute from each template part.
-
Parses wp_template content and injects the active theme’s stylesheet as a theme attribute into each wp_template_part
-
functionwp_get_loading_attr_default()
Gets the default value to use for a `loading` attribute on an element.
-
function_wp_multiple_block_styles()
Allows multiple block styles.
-
functionthe_block_template_skip_link()
Prints the skip-link script & styles.
-
Inject the block editor assets that need to be loaded into the editor’s iframe as an inline script.
-
Runs a remote HTTPS request to detect whether HTTPS supported, and stores potential errors.
-
Short-circuits the process of detecting errors related to HTTPS support.