Make WordPress Core

Changeset 55915


Ignore:
Timestamp:
06/14/2023 10:44:12 AM (20 months ago)
Author:
oandregal
Message:

Fix lint issues in WP_Theme_JSON::sanitize method.

Add @since tag and indent the parameter properly.

Props mukesh27.
Fixes #58462.

File:
1 edited

Legend:

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

    r55912 r55915  
    672672     * @since 5.8.0
    673673     * @since 5.9.0 Added the `$valid_block_names` and `$valid_element_name` parameters.
     674     * @since 6.3.0 Added the `$valid_variations` parameter.
    674675     *
    675676     * @param array $input               Structure to sanitize.
    676677     * @param array $valid_block_names   List of valid block names.
    677678     * @param array $valid_element_names List of valid element names.
    678      * @param array $valid_variations List of valid variations per block.
     679     * @param array $valid_variations    List of valid variations per block.
    679680     * @return array The sanitized output.
    680681     */
Note: See TracChangeset for help on using the changeset viewer.