Changeset 51783
- Timestamp:
- 09/09/2021 02:31:13 PM (3 years ago)
- Location:
- trunk/src/wp-includes
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-setting.php
r51518 r51783 560 560 * @since 3.4.0 561 561 * 562 * @param string|array $value 562 * @param string|array $value The value to sanitize. 563 563 * @return string|array|null|WP_Error Sanitized value, or `null`/`WP_Error` if invalid. 564 564 */ -
trunk/src/wp-includes/customize/class-wp-customize-nav-menu-item-setting.php
r49624 r51783 654 654 * 655 655 * @since 4.3.0 656 * 657 * @param array $menu_item_value The value to sanitize. 656 * @since 5.9.0 Renamed `$menu_item_value` to `$value` for PHP 8 named parameter support. 657 * 658 * @param array $value The menu item value to sanitize. 658 659 * @return array|false|null|WP_Error Null or WP_Error if an input isn't valid. False if it is marked for deletion. 659 660 * Otherwise the sanitized value. 660 661 */ 661 public function sanitize( $menu_item_value ) { 662 public function sanitize( $value ) { 663 // Restores the more descriptive, specific name for use within this method. 664 $menu_item_value = $value; 665 662 666 // Menu is marked for deletion. 663 667 if ( false === $menu_item_value ) { -
trunk/src/wp-includes/customize/class-wp-customize-nav-menu-setting.php
r49108 r51783 408 408 * @since 4.3.0 409 409 * 410 * @param array $value The value to sanitize.410 * @param array $value The menu value to sanitize. 411 411 * @return array|false|null Null if an input isn't valid. False if it is marked for deletion. 412 412 * Otherwise the sanitized value.
Note: See TracChangeset
for help on using the changeset viewer.