WordPress.org

Make WordPress Core

Ticket #22704: words.diff

File words.diff, 2.0 KB (added by jorbin, 4 years ago)
  • src/wp-admin/includes/class-wp-upgrader.php

     
    18721872 
    18731873                wp_mail( get_site_option( 'admin_email' ), $subject, implode( "\n", $body ) ); 
    18741874        } 
    1875 } 
    1876  No newline at end of file 
     1875    static function get_status_message(){ 
     1876                // If we are vcs checkout, let users know that they are not being autoupdated  
     1877                if( self::is_vcs_checkout( ABSPATH ) ) 
     1878                        return __('<div class="error inline"><p><strong>IMPORTANT:</strong> This install uses version control (SVN or Git) and thus will not receive auto updates. You are responsible for keeping this install updated.</p></div>') 
     1879 
     1880                if( ! wp_http_supports( 'ssl' ) ) 
     1881                        return __( '<div class="error inline"><p><strong>IMPORTANT:</strong> Your server does not support HTTP requests over SSL. This install will not receive auto updates. You are responsible for keeping this install updated.</p></div>') 
     1882 
     1883                if (can_do_updates() && is_latest() ) // @TODO:  not real functions  
     1884                        return __('<div><p>Your install of WordPress is up to date and able to automattically update for all security releases. You are still responsible for keeping your plugins and themes updated.</p></div>'); 
     1885 
     1886                if (! can_do_updates() && is_latest() ) // @TODO: not real fuctions  
     1887                        return __('<div class="error inline"><p>Your install of WordPress is up to date, but we are unable to automattically update this site. For help with updates, visit the <a href="http://codex.wordpress.org/Updating_WordPress">Updating WordPress</a> Codex page.</p></div>');      
     1888 
     1889                if (! can_do_updates() && ! is_latest() ) // @TODO: not real fuctions    
     1890                        return __('<div class="error inline"><p>Your install of WordPress is out of date and we are unable to automattically update your site. For help with updates, visit the <a href="http://codex.wordpress.org/Updating_WordPress">Updating WordPress</a> Codex page.</p></div>');      
     1891                                                                                                                                                                                                                                                                                    }  
     1892}