• Resolved jovarela

    (@jovarela)


    When updating a record using “wp_post_update,” it shows the error “Undefined array key replace_iframe_tags” in advanced_iframe.php on line 1136.

    The modification is done correctly, but I would still like it not to show the error.

    I have modified the advanced_iframe.php file on that line, changing it from:

    PHP

    if ($devOptions['replace_iframe_tags'] !== 'true') {
        return $content;
    }
    

    to:

    PHP

    if (!isset($devOptions['replace_iframe_tags']) || $devOptions['replace_iframe_tags'] !== 'true') {
        return $content;
    }
    

    But when the plugin is updated, this change is removed.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author mdempfle

    (@mdempfle)

    Thanks for the report. Your fix fixes the message. I will fix the root cause because there this setting is missing in the save part.
    In the next update I will provide a fix for this.

    Thanks a lot, Michael

    Plugin Author mdempfle

    (@mdempfle)

    Hi,

    2025.7 was release where this is fixed now.

    Please check and confirm.

    Best regards, Michael

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Error “Undefined array key”’ is closed to new replies.