wp/wp-includes/functions.wp-styles.php
changeset 19 3d72ae0968f4
parent 16 a86126ab1dd4
child 21 48c4eec2b7e6
--- a/wp/wp-includes/functions.wp-styles.php	Wed Sep 21 18:19:35 2022 +0200
+++ b/wp/wp-includes/functions.wp-styles.php	Tue Sep 27 16:37:53 2022 +0200
@@ -217,7 +217,7 @@
 /**
  * Add metadata to a CSS stylesheet.
  *
- * Works only if the stylesheet has already been added.
+ * Works only if the stylesheet has already been registered.
  *
  * Possible values for $key and $value:
  * 'conditional' string      Comments for IE 6, lte IE 7 etc.
@@ -225,14 +225,18 @@
  * 'suffix'      string      Optional suffix, used in combination with RTL.
  * 'alt'         bool        For rel="alternate stylesheet".
  * 'title'       string      For preferred/alternate stylesheets.
+ * 'path'        string      The absolute path to a stylesheet. Stylesheet will
+ *                           load inline when 'path'' is set.
  *
  * @see WP_Dependencies::add_data()
  *
  * @since 3.6.0
+ * @since 5.8.0 Added 'path' as an official value for $key.
+ *              See {@see wp_maybe_inline_styles()}.
  *
  * @param string $handle Name of the stylesheet.
  * @param string $key    Name of data point for which we're storing a value.
- *                       Accepts 'conditional', 'rtl' and 'suffix', 'alt' and 'title'.
+ *                       Accepts 'conditional', 'rtl' and 'suffix', 'alt', 'title' and 'path'.
  * @param mixed  $value  String containing the CSS data to be added.
  * @return bool True on success, false on failure.
  */