[wp-trac] [WordPress Trac] #56707: `register_block_type`'s `editor_script` handle fails if it is an array.
WordPress Trac
noreply at wordpress.org
Tue Oct 18 03:28:58 UTC 2022
#56707: `register_block_type`'s `editor_script` handle fails if it is an array.
-------------------------------------------------+-------------------------
Reporter: nendeb55 | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 6.1
Component: Editor | Version: trunk
Severity: normal | Resolution:
Keywords: needs-testing has-testing-info dev- | Focuses:
feedback |
-------------------------------------------------+-------------------------
Comment (by nendeb55):
@costdev Thanks for the improvement.
I have tested it with NULL or empty value inside $value and it seems to
work fine.
If you are concerned I can add this code.
{{{#!php
<?php
if( in_array( NULL, $value, TRUE ) ){
return;
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56707#comment:12>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list