Support » Theme: Tiny Framework » php7 and Tip84

  • hupe13

    (@hupe13)



    Hello Tomas,

    there is a php7 problem: Function create_function() is deprecated.

    /**
     * 4.2 - Tip84 - Remove error message on the login page.
     *
     * @link http://www.wpbeginner.com/wp-tutorials/11-vital-tips-and-hacks-to-protect-your-wordpress-admin-area/
     */
    
    // OLD
    //add_filter( 'login_errors', create_function('$a', "return null;") );
    
    // NEW
    function no_wordpress_errors(){
      return 'Something is wrong!';
    }
    add_filter( 'login_errors', 'no_wordpress_errors' );
    

    Thank you for your nice theme!

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