WordPress.org

Support

Support » Plugins and Hacks » WP Hide Post » A lot of logging garbage if WP_DEBUG is set

A lot of logging garbage if WP_DEBUG is set

  • JochenT

    @jochent

    In your plugin you activate your debugging mode automatically if WP_DEBUG is set to true. This creates a lot of logging messages like:

    WPHP-> called: wphp_query_posts_where
    WPHP-> called: wphp_query_posts_join

    This is not very useful. At all if someone is trying to monitor messages from his own code or other plugins.

    It would be nice to decouple your script debugging from general WordPress debugging.

    http://wordpress.org/plugins/wp-hide-post/

Viewing 3 replies - 1 through 3 (of 3 total)
  • I agree with JochenT on this one.

    Agree, but the plugin is not longer maintained anyway as the last update was done one year ago, is there a similar plugin to get this replaced?

    qstudio

    @qlstudio

    if it’s no longer maintained, you can hack it!

    wp-hide-post.php:40

    define('WPHP_DEBUG', defined('WP_DEBUG') && WP_DEBUG ? 1 : 0);

    becomes:

    #define('WPHP_DEBUG', defined('WP_DEBUG') && WP_DEBUG ? 1 : 0);

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘A lot of logging garbage if WP_DEBUG is set’ is closed to new replies.
Skip to toolbar