Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #58333, comment 7


Ignore:
Timestamp:
05/17/2023 12:49:49 AM (19 months ago)
Author:
andergmartins
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #58333, comment 7

    v1 v2  
    1616    if (isset($parsed_block['innerContent'])) {
    1717        foreach ($parsed_block['innerContent'] as &$innerContent) {
     18            if (empty($innerContent)) {
     19                continue;
     20            }
     21
    1822            $innerContent = do_shortcode($innerContent);
    1923        }
     
    2428            if (! empty($innerBlock['innerContent'])) {
    2529                foreach ($innerBlock['innerContent'] as &$innerContent) {
     30                    if (empty($innerContent)) {
     31                        continue;
     32                    }
     33
    2634                    $innerContent = do_shortcode($innerContent);
    2735                }
     
    3341}, 10, 1);
    3442
     43
    3544}}}
    3645