Support » Fixing WordPress » Blank lines of code in wp-config and functions.php

  • adamjedgar

    (@computersimulatorscom)


    I am trying to determine if blank lines in code make a difference to wordpress?

    1. Is it ok to have blank lines?
    2. If so, is there a time when it is not ok to have blank lines (examples would be helpful)

    eg notice these lines from wp-config-sample.php…(these blank lines are in the default file)

    /** MySQL database username */
    define(‘DB_USER’, ‘username_here’);

    /** MySQL database password */
    define(‘DB_PASSWORD’, ‘password_here’);

    /** MySQL hostname */
    define(‘DB_HOST’, ‘localhost’);
    2. If not, what do i do about the default install appearing to insert these lines into my wordpress code?

    I have manually gone through the above two mentioned files and deleted every blank line i can find. I havent a clue whether it has made any difference to speed or anything else for that matter.

  • The topic ‘Blank lines of code in wp-config and functions.php’ is closed to new replies.