Support » Plugin: PHP Code Widget » Deprecated usage of create_function()

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Thank you for your input, however I do not plan on updating this widget for PHP 7 compatibility, and I recommend that you stop using it.

    If you have a need for this widget, you’re better off writing your own custom widget instead. More information on how to do this is here:
    http://ottopress.com/2017/on-the-topic-of-that-pesky-widget/

    Thread Starter Marcoevich

    (@marcoevich)

    Hi Samuel,

    Ok, will do. Forgive me but I am curious why you abandon the plugin while I provide you with the solution. Do you have security concerns for using PHP in a widget?

    Plugin Author Samuel Wood (Otto)

    (@otto42)

    WordPress.org Admin

    Do you have security concerns for using PHP in a widget?

    Yes. Please do not use this widget. It is not safe or sane to be putting PHP code directly into your page like this.

    The widget was meant for temporary use during migration to widget based themes. Not for permanent use. If you have custom PHP code, then put it in a custom made plugin, as I explain in the previously given link.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Deprecated usage of create_function()’ is closed to new replies.