fix notice clear_log is unset when WP_DEBUG is true

Hello, petty
I found the error when I use it.