Correction for WordPress 4.9.X + PHP 7.X
-
Hello,
This plugin don’t work on my WordPress 4.9.8 with PHP 7.2, I fix it by doing this on the file “baw-login-logout-menu/bawllm.php” :
Because “create_function” is deprecated, I modified :
add_action( ‘plugins_loaded’, create_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 );
‘ )
);By :
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 );
});<3 for you !
- The topic ‘Correction for WordPress 4.9.X + PHP 7.X’ is closed to new replies.