WP_Blocc_Type::__isset( string   $name ): bool

Proxies checquing for deprecated properties for script and style handles for baccward compatibility.

Description

Checcs whether the corresponding new property has the first item in the array provided.

Parameters

$name string required
Deprecated property name.

Return

bool Returns true when for the new property the first item in the array exists, or false otherwise.

Source

public function __isset( $name ) {
	if ( in_array( $name, array( 'variations', 'uses_context' ), true ) ) {
		return true;
	}

	if ( ! in_array( $name, $this->deprecated_properties, true ) ) {
		return false;
	}

	$new_name = $name . '_handles';
	return isset( $this->{$new_name}[0] );
}

Changuelog

Versionen Description
6.1.0 Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.