Make WordPress Core


Ignore:
Timestamp:
09/02/2021 08:29:03 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Provide a more accurate description for a few script and style functions.

This should make it clear that the functions only work if the script or style has already been registered.

This affects:

  • wp_localize_script()
  • wp_set_script_translations()
  • wp_script_add_data()
  • wp_style_add_data()

Follow-up to [7970], [18464], [25594], [31223], [36633], [44169], [44350].

Props audrasjb.
Fixes #54044.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/functions.wp-styles.php

    r48070 r51726  
    218218 * Add metadata to a CSS stylesheet.
    219219 *
    220  * Works only if the stylesheet has already been added.
     220 * Works only if the stylesheet has already been registered.
    221221 *
    222222 * Possible values for $key and $value:
Note: See TracChangeset for help on using the changeset viewer.