WordPress.org

Plugin Directory

Changeset 633396


Ignore:
Timestamp:
12/03/12 09:59:25 (17 months ago)
Author:
donncha
Message:

Hide these fs warnings from the logs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wp-super-cache/trunk/wp-cache-phase2.php

    r592326 r633396  
    603603                @unlink( $tmp_wpcache_filename ); 
    604604            } else { 
    605                 if ( !rename( $tmp_wpcache_filename, $blog_cache_dir . $cache_filename ) ) { 
     605                if ( !@rename( $tmp_wpcache_filename, $blog_cache_dir . $cache_filename ) ) { 
    606606                    if ( false == is_dir( $blog_cache_dir ) ) 
    607607                        @wp_mkdir_p( $blog_cache_dir ); 
    608                     unlink( $blog_cache_dir . $cache_filename ); 
    609                     rename( $tmp_wpcache_filename, $blog_cache_dir . $cache_filename ); 
     608                    @unlink( $blog_cache_dir . $cache_filename ); 
     609                    @rename( $tmp_wpcache_filename, $blog_cache_dir . $cache_filename ); 
    610610                } 
    611611                if ( isset( $GLOBALS[ 'wp_super_cache_debug' ] ) && $GLOBALS[ 'wp_super_cache_debug' ] ) wp_cache_debug( "Renamed temp wp-cache file to {$blog_cache_dir}$cache_filename", 5 ); 
Note: See TracChangeset for help on using the changeset viewer.