• Resolved harrinsonmb

    (@harrinsonmb)


    Hi guys,

    I have been investigating why the plugin sets a “</div>” when I insert and advanced iframe to my content, because this breaks my page.

    I have seen that in the file wp-content/plugins/advanced-iframe/advanced-iframe.php at line 1577 for version 2021.1, there’s a closed div “</div>” but I think it’s never opened.

    If I place a ‘<div>’ . $html . ‘</div> in the mentioned line, everything works fine.

    Am I right about this error?

    Thanks.

    • This topic was modified 3 years, 6 months ago by harrinsonmb.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author mdempfle

    (@mdempfle)

    Hi,

    Thanks for the hint. The div is opened 5 lines before. But only in the parse_request action.

    So the fix has to be:

    
    if (current_action() == "parse_request") {   
       $html .= '</div>'; 	  
    }
    return $html;
    

    I will include this to the next update.

    Please try and let me know ;).

    Cheers, Michael

    Thread Starter harrinsonmb

    (@harrinsonmb)

    Thanks michael, it seems to be working!

    Regards, Harry

    Plugin Author mdempfle

    (@mdempfle)

    Great. I will then release this in the next update.

    Best regards, Michael

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Div closed but never opened’ is closed to new replies.