• Hello,

    I saw another topic about this, but didn’t want to hijack the thread.

    I’m getting the following PHP notices from this plugin when using PHP 7.2:

    Function create_function() is deprecated

    Locations:

    wp-content/plugins/wpfront-notification-bar/classes/base/class-wpfront-options-base.php:68
    wp-content/plugins/wpfront-notification-bar/classes/base/class-wpfront-options-base.php:77
    wp-content/plugins/wpfront-notification-bar/classes/base/class-wpfront-options-base.php:84

    Caller:

    1. do_action('plugins_loaded')
    wp-settings.php:327
    
    2. WPFront_Base->plugins_loaded_base()
    wp-includes/class-wp-hook.php:286
    
    3. WPFront_Notification_Bar->plugins_loaded()
    wp-content/plugins/wpfront-notification-bar/classes/base/class-wpfront-base.php:84
    
    4. WPFront_Notification_Bar_Options->__construct()
    wp-content/plugins/wpfront-notification-bar/classes/class-wpfront-notification-bar.php:136
    
    5. WPFront_Options_Base->addOption()
    wp-content/plugins/wpfront-notification-bar/classes/class-wpfront-notification-bar-options.php:41

    Thanks for an awesome plugin!

    • This topic was modified 6 years, 9 months ago by Benbodhi.
Viewing 1 replies (of 1 total)
  • Thread Starter Benbodhi

    (@benbodhi)

    It looks like you just need to swap out the create_function with an anonymous function or something.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP 7.2 Notices’ is closed to new replies.