Support » Plugin: Social Sharing Buttons - Grow by Mediavine » PHP Deprecated: Function create_function() is deprecated in admin-widgets.php o

  • Resolved Tim de Hoog

    (@tim_nl)


    In admin-widgets.php on row 241 you will find this row of code:
    add_action( 'widgets_init', create_function('', 'return register_widget("DPSP_Top_Shared_Posts");') );

    But create_function is deprecated. So I think this must be rewritten to:
    add_action( 'widgets_init', function () { return register_widget("DPSP_Top_Shared_Posts");});

Viewing 1 replies (of 1 total)
  • Plugin Contributor iova.mihai

    (@iovamihai)

    Hey @tim_nl,

    Thank you for reaching out with this message. Can you please let me know what version of the plugin you currently have installed? In the latest version the issue seems to be fixed.

    All the best,
    Mihai

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.