Support » Plugin: Login Logout Menu » Deprecated: Function create_function() is deprecated in /home/xxxx/xxxxxxxx.c

  • Deprecated: Function create_function() is deprecated in /home/xxxx/xxxxxxxx.com/public_html/wp-content/plugins/baw-login-logout-menu/bawllm.php on line 13

    Replace all the code in the bawllm.php file with the code below. Save it, uploaded it and the problem is fixed.

    <?php
    /*
    Plugin Name: BAW Login/Logout menu
    Plugin URI: http://www.boiteaweb.fr/?p=3337
    Description: You can now add a correct login & logout link in your WP menus.
    Author: Juliobox
    Author URI: http://wp-rocket.me
    Version: 1.3.3
    */
    
    define( 'BAWLLM_VERSION', '1.3.3' );
    
    add_action( 'plugins_loaded', function() {
    $filename = "inc/";
    $filename .= is_admin() ? "backend-" : "frontend-";
    $filename .= defined( "DOING_AJAX" ) && DOING_AJAX ? "" : "no";
    $filename .= "ajax.inc.php";
    if( file_exists( plugin_dir_path( __FILE__ ) . $filename ) )
    include( plugin_dir_path( __FILE__ ) . $filename );
    $filename = "inc/";
    $filename .= "bothend-";
    $filename .= defined( "DOING_AJAX" ) && DOING_AJAX ? "" : "no";
    $filename .= "ajax.inc.php";
    if( file_exists( plugin_dir_path( __FILE__ ) . $filename ) )
    include( plugin_dir_path( __FILE__ ) . $filename );
    });
    • This topic was modified 2 months, 3 weeks ago by  a4jp . com.
Viewing 1 replies (of 1 total)
  • Can you update the plugin please? It’s a wonderful plugin. I can take over with updates or version tests if you like.

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