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: https://www.boiteaweb.fr/?p=3337 Description: You can now add a correct login & logout link in your WP menus. Author: Juliobox Author URI: https://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 ); });
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Deprecated: Function create_function() is deprecated in /home/xxxx/xxxxxxxx.c’ is closed to new replies.