WordPress.org

Make WordPress Core

Ticket #13942: admin-ajax.php.diff

File admin-ajax.php.diff, 699 bytes (added by dangayle, 8 years ago)

Added span with class "error" to highlight problem

  • trunk/wp-admin/admin-ajax.php

     
    3333                if ( ! $id )
    3434                        die('-1');
    3535
    36                 $message = sprintf( __('<strong>ALERT: You are logged out!</strong> Could not save draft. <a href="%s" target="_blank">Please log in again.</a>'), wp_login_url() );
     36                $message = sprintf( __('<span class="error"><strong>ALERT: You are logged out!</strong> Could not save draft. <a href="%s" target="_blank">Please log in again.</a></span>'), wp_login_url() );
    3737                $x = new WP_Ajax_Response( array(
    3838                        'what' => 'autosave',
    3939                        'id' => $id,