Skip to content

Commit

Permalink
docs: fix missing false return type on gutenberg_register_block_mod…
Browse files Browse the repository at this point in the history
…ule_id() (WordPress#68393)


Co-authored-by: justlevine <justlevine@git.wordpress.org>
Co-authored-by: Mamaduka <mamaduka@git.wordpress.org>
  • Loading branch information
3 people authored Jan 14, 2025
1 parent 067ee7b commit 1b188a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/experimental/script-modules.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function gutenberg_filter_block_type_metadata_settings_register_view_module( $se
* @param string $field_name Field name to pick from metadata.
* @param int $index Optional. Index of the script to register when multiple items passed.
* Default 0.
* @return string Module ID.
* @return string|false Module ID.
*/
function gutenberg_register_block_module_id( $metadata, $field_name, $index = 0 ) {
if ( empty( $metadata[ $field_name ] ) ) {
Expand Down

0 comments on commit 1b188a9

Please sign in to comment.