Make WordPress Core


Ignore:
Timestamp:
06/14/2024 09:03:40 AM (2 years ago)
Author:
oandregal
Message:

Section styles: add slug to override non-kebab-cased variations.

Props aaronrobertshaw, oandregal.
Fixes #61440.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-theme-json.php

    r58409 r58413  
    359359                'patterns',
    360360                'settings',
     361                'slug',
    361362                'styles',
    362363                'templateParts',
     
    32453246         * @since 6.6.0 Updated to allow variation element styles and $origin parameter.
    32463247         *
    3247          * @param array $theme_json Structure to sanitize.
     3248         * @param array  $theme_json Structure to sanitize.
    32483249         * @param string $origin    Optional. What source of data this object represents.
    32493250         *                          One of 'blocks', 'default', 'theme', or 'custom'. Default 'theme'.
Note: See TracChangeset for help on using the changeset viewer.