Make WordPress Core


Ignore:
Timestamp:
02/18/2026 04:38:42 AM (6 months ago)
Author:
westonruter
Message:

Customize: Ensure WP_Customize_Setting::update() and subclass overrides return consistent types.

This addresses PHPStan type check issues.

Developed in https://github.com/WordPress/wordpress-develop/pull/10952

Props westonruter, peterwilsoncc, justlevine.
See #64238, #61175.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-customize-setting.php

    r61433 r61670  
    709709                        do_action( "customize_update_{$this->type}", $value, $this );
    710710
    711                         return has_action( "customize_update_{$this->type}" );
     711                        return (bool) has_action( "customize_update_{$this->type}" );
    712712                }
    713713        }
Note: See TracChangeset for help on using the changeset viewer.