WordPress.org

Make WordPress Core

Changeset 22082


Ignore:
Timestamp:
09/29/2012 01:22:25 AM (7 years ago)
Author:
dd32
Message:

Silence a PHP Warning in Safe Mode from get_temp_dir(). Props ocean90. Fixes #20778

File:
1 edited

Legend:

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

    r22038 r22082  
    13921392    if ( function_exists('sys_get_temp_dir') ) {
    13931393        $temp = sys_get_temp_dir();
    1394         if ( is_dir( $temp ) && ( $is_win ? win_is_writable( $temp ) : @is_writable( $temp ) ) ) {
     1394        if ( @is_dir( $temp ) && ( $is_win ? win_is_writable( $temp ) : @is_writable( $temp ) ) ) {
    13951395            return trailingslashit( $temp );
    13961396        }
Note: See TracChangeset for help on using the changeset viewer.