WordPress.org

Ready to get started?Download WordPress

Forums

Admin in English with Switch
[resolved] Error (6 posts)

  1. Li-An
    Member
    Posted 1 year ago #

    Fatal error: Call to undefined function wp_get_current_user() in /home/**/wp-content/plugins/admin-in-english-with-switch/admin-in-english-with-switch.php on line 13

    http://wordpress.org/extend/plugins/admin-in-english-with-switch/

  2. supersonic
    Member
    Posted 1 year ago #

    Hi Li-an

    I believe Facebook did something and broke this, and similar plugins.

    Please take a look at this thread --> http://wordpress.org/support/topic/plugin-not-working-with-wordpress-351

  3. dontcare
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Li-An,

    did you try including the following line of code in wp-includes/capabilities.php on line 2?

    require_once('pluggable.php');

  4. Li-An
    Member
    Posted 1 year ago #

    You mean change the WP core ?

  5. dontcare
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, the core. Although I understand that tweaking the core is not recommended, calling the wp_get_current_user() function in the latest builds of WP causes the error message. I am looking for the workaround, however this is the only one I found so far.

  6. dontcare
    Member
    Plugin Author

    Posted 1 year ago #

    Ok, I was able to solve the issue without tweaking the core. Version 1.1 should work fine. Any feedback is appreciated.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.