Changeset 61767 for trunk/src/wp-includes/class-wp-customize-widgets.php
- Timestamp:
- 02/27/2026 11:17:12 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-customize-widgets.php
r61433 r61767 177 177 * 178 178 * @param string $setting_id Setting ID. 179 * @return string| voidSetting type.179 * @return string|null Setting type. 180 180 */ 181 181 protected function get_setting_type( $setting_id ) { … … 1455 1455 * @param array $value Widget instance to sanitize. 1456 1456 * @param string $id_base Optional. Base of the ID of the widget being sanitized. Default null. 1457 * @return array| voidSanitized widget instance.1457 * @return array|null Sanitized widget instance. 1458 1458 */ 1459 1459 public function sanitize_widget_instance( $value, $id_base = null ) { … … 1484 1484 empty( $value['encoded_serialized_instance'] ) 1485 1485 ) { 1486 return ;1486 return null; 1487 1487 } 1488 1488 1489 1489 $decoded = base64_decode( $value['encoded_serialized_instance'], true ); 1490 1490 if ( false === $decoded ) { 1491 return ;1491 return null; 1492 1492 } 1493 1493 1494 1494 if ( ! hash_equals( $this->get_instance_hash_key( $decoded ), $value['instance_hash_key'] ) ) { 1495 return ;1495 return null; 1496 1496 } 1497 1497 1498 1498 $instance = unserialize( $decoded ); 1499 1499 if ( false === $instance ) { 1500 return ;1500 return null; 1501 1501 } 1502 1502
Note:
See TracChangeset
for help on using the changeset viewer.