Support » Plugin: Capability Manager Enhanced » create_function deprecated in PHP 7.2

  • Resolved KTS915

    (@kts915)


    Line 33 of capsman-enhanced.php needs changing from this:

    
    	add_action('admin_notices', create_function('', 'echo \'<div id="message" class="error fade" style="color: black">' . $message . '</div>\';'));
    

    to this:

    
    	add_action( 'admin_notices', function() {
    		echo '<div id="message" class="error fade" style="color: black">' . $message . '</div>';
    	} );
    

    Thanks for the plugin!

Viewing 1 replies (of 1 total)
  • Plugin Author Kevin Behrens

    (@kevinb)

    This PHP 7.2 compatibility issue is resolved in Capability Manager Enhanced 1.5.10

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