Changeset 60809 for trunk/src/wp-includes/class-wp-block-type-registry.php
- Timestamp:
- 09/29/2025 04:28:00 PM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-block-type-registry.php
r60804 r60809 135 135 * @since 5.0.0 136 136 * 137 * @param string $name Block type name including namespace.137 * @param string|null $name Block type name including namespace. 138 138 * @return WP_Block_Type|null The registered block type, or null if it is not registered. 139 139 */ … … 162 162 * @since 5.0.0 163 163 * 164 * @param string $name Block type name including namespace.164 * @param string|null $name Block type name including namespace. 165 165 * @return bool True if the block type is registered, false otherwise. 166 166 */ 167 167 public function is_registered( $name ) { 168 return isset( $ this->registered_block_types[ $name ] );168 return isset( $name, $this->registered_block_types[ $name ] ); 169 169 } 170 170
Note: See TracChangeset
for help on using the changeset viewer.