Support » Plugin: WP Plugin Security Check » [Small bug fix] file_get_contents vs directories

  • Hiya,

    Very helpful little plugin this. Thank you for that!

    Just though I’d let you know that with WP_DEBUG on, it produces a lot of warnings as it will try and treat directories as files.

    This can easily be fixed. Just change line 64:
    if( file_exists( $realfile ) ){
    if( file_exists( $realfile ) && !is_dir( $realfile ) ){

    Hope this helps & keep up the good work!


  • The topic ‘[Small bug fix] file_get_contents vs directories’ is closed to new replies.