WordPress.org

Ready to get started?Download WordPress

Forums

debug on different sites on multisite wp (4 posts)

  1. chemdream
    Member
    Posted 2 years ago #

    I think it would be really cool (and useful) to set "debug=true" on individual sites on a multisite wp. It would make it easier to test themes etc.

  2. archonic
    Member
    Posted 2 years ago #

    Seconded! I'd like to enable debug mode for individual sites.

  3. flick
    Member
    Posted 2 years ago #

    Third vote for this :)

  4. Psst. You can!

    With props to Mike, let's say you wanted to only debug foo.example.com:

    if ($_SERVER['HTTP_HOST']=='foo.example.com')
      define('WP_DEBUG', true);
    else
      define('WP_DEBUG', false);

    Or even shorter:

    define('WP_DEBUG', $_SERVER['HTTP_HOST']=='foo.example.com');

    http://wordpress.stackexchange.com/questions/6712/how-to-set-configuration-options-for-particular-sub-blogs

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.