wp-includes/deprecated.php | Developer.WordPress.org
-
Prints a CSS rule to fix potential visual issues with images using `sizes=auto`.
-
Generate block style variation instance name.
-
Updates the block content with elements class names.
-
Ensure that the view script has the `wp-interactivity` dependency.
-
Ensures that the view script has the `wp-interactivity` dependency.
-
Ensure that the view script has the `wp-interactivity` dependency.
-
Processes the directives on the rendered HTML of the interactive blocks.
-
Registers the style and colors block attributes for block types that support it.
-
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.
-
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.
-
Returns the prefixed id for the duotone filter for use as a CSS id.
-
Returns the CSS filter property url to reference the rendered SVG.
-
Returns the duotone filter SVG string for the preset.
-
Direct port of tinycolor’s boundAlpha function to maintain consistency with how tinycolor works.
-
Rounds and converts values of an RGB object.
-
Helper function for hsl to rgb conversion.
-
Converts an HSL object to an RGB object with converted and rounded values.
-
Takes input from [0, n] and returns it as [0, 1].
-
Enqueues the global styles custom css defined via theme.json.
-
Gets the global styles custom CSS from theme.json.
-
Generates an inline style for a typography feature e.g. text decoration, text transform, and font style.
-
Adds `decoding` attribute to an `img` HTML tag.
-
Loads classic theme styles on classic themes in the editor.
-
Returns a string containing the SVGs to be referenced as filters (duotone).
-
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.
-
Checks whether serialization of the current block’s border properties should occur.
-
Checks whether serialization of the current block’s dimensions properties should occur.
-
Returns the correct template for the site’s home page.