Mastodon

Jan MT Mc Kell

Web . Write . WP.

  • Deprecation of create_function

    Deprecation of create_function

    If you get this error whilst working with WordPress: “Deprecated: Function create_function() is deprecated in…”, the following advice works: “It addresses the add_filter statement: add_filter( 'option_page_capability_' . ot_options_id(), create_function( '$caps', "return '$caps';" ), 999 ); switch it out, and use this instead: add_filter( 'option_page_capability_' . ot_options_id(), function($caps) {return $caps;},999); We can see the usage of…

    Read More

  • ,

    Troubleshooting Git

    Troubleshooting Git

    Had an issue, whilst learning git commands and the helpful www came to my rescue.. My problem: Getting this error message anytime I tried to commit a file: “Aborting commit due to empty commit message.” Found the solution at stackoverflow.com “I’m also a newbie in Git. I encountered basically the same problem as yours. I…

    Read More