Make WordPress Core

Ticket #34951: 34951.patch

File 34951.patch, 2.3 KB (added by afercia, 10 years ago)
  • src/wp-includes/css/wp-auth-check.css

     
    4848}
    4949
    5050#wp-auth-check-wrap #wp-auth-check-form {
    51         background: url(../images/spinner-2x.gif) no-repeat center center;
    52         -webkit-background-size: 16px 16px;
    53         background-size: 16px 16px;
    5451        height: 100%;
     52        position: relative;
    5553        overflow: auto;
    5654        -webkit-overflow-scrolling: touch;
    5755}
    5856
     57#wp-auth-check-form.loading:before {
     58        content: "";
     59        display: block;
     60        width: 20px;
     61        height: 20px;
     62        position: absolute;
     63        left: 50%;
     64        top: 50%;
     65        margin: -10px 0 0 -10px;
     66        background: url(../images/spinner.gif) no-repeat center;
     67        -webkit-background-size: 20px 20px;
     68        background-size: 20px 20px;
     69        -webkit-transform: translateZ(0);
     70        transform: translateZ(0);
     71}
     72
     73@media print,
     74  (-webkit-min-device-pixel-ratio: 1.25),
     75  (min-resolution: 120dpi) {
     76
     77        #wp-auth-check-form.loading:before {
     78                background-image: url(../images/spinner-2x.gif);
     79        }
     80
     81}
     82
    5983#wp-auth-check-wrap #wp-auth-check-form iframe {
    6084        height: 98%; /* Scrollbar fix */
    6185        width: 100%;
  • src/wp-includes/functions.php

     
    49344934
    49354935        if ( $same_domain ) {
    49364936                ?>
    4937                 <div id="wp-auth-check-form" data-src="<?php echo esc_url( add_query_arg( array( 'interim-login' => 1 ), $login_url ) ); ?>"></div>
     4937                <div id="wp-auth-check-form" class="loading" data-src="<?php echo esc_url( add_query_arg( array( 'interim-login' => 1 ), $login_url ) ); ?>"></div>
    49384938                <?php
    49394939        }
    49404940
  • src/wp-includes/js/wp-auth-check.js

     
    2020                                var height, body;
    2121
    2222                                loaded = true;
     23                                // Remove the spinner to avoid unnecessary CPU/GPU usage.
     24                                form.removeClass( 'loading' );
    2325
    2426                                try {
    2527                                        body = $(this).contents().find('body');
     
    4648                                }
    4749                        }).attr( 'src', form.data('src') );
    4850
    49                         $('#wp-auth-check-form').append( frame );
     51                        form.append( frame );
    5052                }
    5153
    5254                $( 'body' ).addClass( 'modal-open' );