Make WordPress Core

Changeset 24995


Ignore:
Timestamp:
08/06/2013 05:39:33 PM (11 years ago)
Author:
ryan
Message:

Silence is_dir() to avoud warning when upload_tmp_dir is outside open_basedir.

Props dpash
fixes #24704

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r24917 r24995  
    14251425
    14261426    $temp = ini_get('upload_tmp_dir');
    1427     if ( is_dir( $temp ) && wp_is_writable( $temp ) )
     1427    if ( @is_dir( $temp ) && wp_is_writable( $temp ) )
    14281428        return trailingslashit( rtrim( $temp, '\\' ) );
    14291429
Note: See TracChangeset for help on using the changeset viewer.