WordPress.org

Forums

Pinterest Master
[resolved] [PATCH] non-static method warning (4 posts)

  1. flynsarmy
    Member
    Posted 1 year ago #

    With WP_DEBUG page your plugin causes a bunch of warnings on the plugin list page in admin:
    Strict standards: call_user_func_array() expects parameter 1 to be a valid callback, non-static method techgasp_pinterestmaster::techgasp_pinterestmaster_link() should not be called statically in /path/to/wp-includes/plugin.php on line 173

    Easy enough fix. In techgasp-pinterestmaster.php on line 109 change

    public function techgasp_pinterestmaster_link($links, $file) {

    to

    public static function techgasp_pinterestmaster_link($links, $file) {

    http://wordpress.org/plugins/pinterest-master/

  2. TechGasp
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for reporting flynsarmy.
    Our WP_DEBUG is obviously ON in our development wordpress installation but the php.ini error_reportin is not showing strict standards.
    Will take a look and release a new version.

  3. flynsarmy
    Member
    Posted 1 year ago #

    They're turned on by default in WP3.6 I believe

  4. TechGasp
    Member
    Plugin Author

    Posted 1 year ago #

    We are running WP latest version.
    Under the impression that since php.ini is website server configuration, wordpress only reports what is set there.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.