- Timestamp:
- 10/06/2025 11:29:14 AM (14 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-wp-block-styles-registry.php
r60275 r60904 182 182 * @since 5.3.0 183 183 * 184 * @param string $block_name Block type name including namespace.185 * @param string $block_style_name Block style name.184 * @param string|null $block_name Block type name including namespace. 185 * @param string|null $block_style_name Block style name. 186 186 * @return bool True if the block style is registered, false otherwise. 187 187 */ 188 188 public function is_registered( $block_name, $block_style_name ) { 189 return isset( $ this->registered_block_styles[ $block_name ][ $block_style_name ] );189 return isset( $block_name, $block_style_name, $this->registered_block_styles[ $block_name ][ $block_style_name ] ); 190 190 } 191 191
Note:
See TracChangeset
for help on using the changeset viewer.