Filter hook 'content_save_pre'

in WP Core File wp-includes/customize/class-wp-customize-nav-menu-item-setting.php at line 725

Description

Sanitize an input. Note that parent::sanitize() erroneously does wp_unslash() on $value, but we remove that in this override. Otherwise the sanitized value.

Occurrences

Filename Line Number
wp-includes/customize/class-wp-customize-nav-menu-item-setting.php 725

Parameters

Type Name Description
array $value The menu item value to sanitize.

PHP Doc

/**
	 * Sanitize an input.
	 *
	 * Note that parent::sanitize() erroneously does wp_unslash() on $value, but
	 * we remove that in this override.
	 *
	 * @since 4.3.0
	 * @since 5.9.0 Renamed `$menu_item_value` to `$value` for PHP 8 named parameter support.
	 *
	 * @param array $value The menu item value to sanitize.
	 * @return array|false|null|WP_Error Null or WP_Error if an input isn't valid. False if it is marked for deletion.
	 *                                   Otherwise the sanitized value.
	 */