[PATCH] non-static method warning
-
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 173Easy 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) {
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘[PATCH] non-static method warning’ is closed to new replies.