Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter PatrickV82

    (@patrickv82)

    are you sure?

    WP_DEBUG is not enabled, as far as i can tell.
    this is part of my config file:
    define(‘WP_DEBUG’, false);

    I edited the wp-ffpc/wp-common/plugin_utils.php file to add a extra if statement and the warnings do not show up anymore.

    switch ( $log_level ) {
                                    case LOG_ERR:
                                            trigger_error ( $identifier . " " . $message, E_USER_ERROR );
                                            break;
                                    case LOG_WARNING:
    /* Added this if */
                                             if ( defined( 'WP_DEBUG' ) && WP_DEBUG === true  )
                                             trigger_error ( $identifier . " " . $message, E_USER_WARNING );
                                            break;
                                    default:
                                            /* info level will only be fired if WP_DEBUG is active */
                                            if ( defined( 'WP_DEBUG' ) && WP_DEBUG == true  )
                                                    trigger_error ( $identifier . " " . $message, E_USER_NOTICE );
                                            break;
                            }

    from

    switch ( $log_level ) {
                                    case LOG_ERR:
                                            trigger_error ( $identifier . " " . $message, E_USER_ERROR );
                                            break;
                                    case LOG_WARNING:
                                             trigger_error ( $identifier . " " . $message, E_USER_WARNING );
                                            break;
                                    default:
                                            /* info level will only be fired if WP_DEBUG is active */
                                            if ( defined( 'WP_DEBUG' ) && WP_DEBUG == true  )
                                                    trigger_error ( $identifier . " " . $message, E_USER_NOTICE );
                                            break;
                            }
Viewing 1 replies (of 1 total)