WordPress.org

Ready to get started?Download WordPress

Forums

Suggestion: Plugin authors (1 post)

  1. Beer
    Member
    Posted 4 years ago #

    When developing and testing, set display errors on and try to fix all notices too. It's still a really good idea to address the minor issues like variables that aren't declared before you assign them values, or test whether the condition is true or not, etc...

    Examples
    PHP Notice: Undefined property: stdClass::$last_name in /plugins/all-in-one-seo-pack/aioseop.class.php on line 679

    PHP Notice: Undefined variable: gz in /plugins/wp-super-cache/wp-cache-phase2.php on line 496

    Not to leave out WordPress (2.9.2) itself of course, but ...
    Notice: Undefined variable: excerpt in /wp-includes/deprecated.php on line 1751

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.