Ticket #16216: 16216.2.diff

File 16216.2.diff, 820 bytes (added by solarissmoke, 2 years ago)

Add ABSPATH, use is_dir(), and capital P, dangit!

  • wp-admin/update-core.php

     
    139139        echo ' &nbsp; <a class="button" href="' . esc_url( self_admin_url('update-core.php') ) . '">' . __( 'Check Again' ) . '</a>'; 
    140140        echo '</p>'; 
    141141 
     142        if ( is_dir( ABSPATH . '.svn' ) || is_dir( ABSPATH . '.git' ) ) 
     143                echo '<div class="updated inline"><p>' . __( '<strong>Warning:</strong> It appears that you are running a SVN/Git checkout of WordPress. You may wish to keep WordPress up to date using SVN/Git instead of the auto-updater.' ) . '</p></div>'; 
     144                 
    142145        if ( !isset($updates[0]->response) || 'latest' == $updates[0]->response ) { 
    143146                echo '<h3>'; 
    144147                _e('You have the latest version of WordPress.');