Skip to:
Content
Pages
Categories
Search
Top
Bottom

Function create_function() is deprecated


  • Robin Labadie
    Participant

    @robin-labadie

    Hi,

    Using PHP 7.2, I notice some messages from the amazing “Query Monitor” WordPress plugin regarding a deprecated function used by BuddyPress:

    Message: Function create_function() is deprecated 
    Count: 26 
    File: wp-content/plugins/buddypress/bp-core/deprecated/1.6.php:268

    Using this function is higly discouraged by PHP itself as you can check here:
    http://php.net/manual/en/function.create-function.php

    I wish I could propose a workaround but I don’t speak PHP, I just wanted to warn devs for future updates. Hopefully this post gets seen by the right persons.

    Best regards everyone!

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

  • Henry Wright
    Moderator

    @henrywright

    The latest version of BuddyPress doesn’t use create_function(). Try upgrading to version 2.9.2.


    Robin Labadie
    Participant

    @robin-labadie

    Sorry, I should have mentioned it in my first post, but I’m already running Version 2.9.2.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar