mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
Fix lint issues in WP_Theme_JSON::sanitize method.
Add @since tag and indent the parameter properly. Props mukesh27. Fixes #58462. git-svn-id: https://develop.svn.wordpress.org/trunk@55915 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2888dafcab
commit
5d544a5c69
@ -671,11 +671,12 @@ class WP_Theme_JSON {
|
||||
*
|
||||
* @since 5.8.0
|
||||
* @since 5.9.0 Added the `$valid_block_names` and `$valid_element_name` parameters.
|
||||
* @since 6.3.0 Added the `$valid_variations` parameter.
|
||||
*
|
||||
* @param array $input Structure to sanitize.
|
||||
* @param array $valid_block_names List of valid block names.
|
||||
* @param array $valid_element_names List of valid element names.
|
||||
* @param array $valid_variations List of valid variations per block.
|
||||
* @param array $valid_variations List of valid variations per block.
|
||||
* @return array The sanitized output.
|
||||
*/
|
||||
protected static function sanitize( $input, $valid_block_names, $valid_element_names, $valid_variations ) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user