• I have some problems with new wordpress version and custom blocks.
    When i fetch some posts for dynamic blocks, in WP 5.8.3 i got array control logical operation by “array === null ? …” , in new WP 5.9 the logical condition “array === null” for fetching posts doesn’t work because the array change his initial condition from “null” to “[]” (empty array) and the condition was ignored.
    I suggest to change “array === null” to “array.length === 0” everywhere in custom dynamic wordpress block before updating core.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Blocks suggestions’ is closed to new replies.