$message =
__( 'Something went wrong.'
);
} else { $message =
$result['message'
];
unset( $result['message'
] );
} return new WP_Error( 'php_error',
$message,
$result );
} } if ( $theme instanceof WP_Theme
) { $theme->
cache_delete();
} return true;
}/**
* Returns a filename of a temporary unique file.
*
* Please note that the calling function must unlink() this itself.
*
* The filename is based off the passed parameter or defaults to the current unix timestamp,
* while the directory can either be passed as well, or by leaving it blank, default to a writable
* temporary directory.
*
* @since 2.6.0
*
* @param string $filename Optional. Filename to base the Unique file off. Default empty.
* @param string $dir Optional. Directory to store the file in. Default empty.
* @return string A writable filename.
*/