WordPress.org

Ready to get started?Download WordPress

Forums

WP Easy Embed
[PATCH] EasyEmbedButtons::_addTinyMCEPlugin() should not be called statically (1 post)

  1. flynsarmy
    Member
    Posted 10 months ago #

    In WP 3.6 with WP_DEBUG enabled your plugin is generating the following error on the edit post/page pages:

    Strict standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method EasyEmbedButtons::_addTinyMCEPlugin() should not be called statically in /path/to/wp-includes/plugin.php on line 173

    This is happening because in file /wp-content/plugins/wp-easy-embed/inc/component/buttons.php method setupButtonScripts() you have the line

    add_filter("mce_external_plugins", array(__CLASS__, '_addTinyMCEPlugin'));

    it should be

    add_filter("mce_external_plugins", array($this, '_addTinyMCEPlugin'));

    http://wordpress.org/plugins/wp-easy-embed/

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.