Make WordPress Core

Ticket #24364: 24364.patch

File 24364.patch, 2.0 KB (added by azaozz, 13 years ago)
  • wp-admin/css/wp-admin.css

     
    55525552        width: 25em;
    55535553}
    55545554
     5555/* Fix yellow backgrounds on input elements where the autofill was removed */
     5556input.no-webkit-autofill,
     5557input.no-webkit-autofill:focus {
     5558        -webkit-box-shadow: 0 0 0 500px #fff inset;
     5559        box-shadow: 0 0 0 500px #fff inset;
     5560}
     5561
    55555562/*------------------------------------------------------------------------------
    55565563  19.0 - Tools
    55575564------------------------------------------------------------------------------*/
  • wp-admin/js/user-profile.js

     
    7373                                });
    7474                        });
    7575                }
     76
     77                setTimeout( function() {
     78                        $('#your-profile input:-webkit-autofill').filter('input[type="text"]:last, input[type="password"]:first')
     79                                .addClass('no-webkit-autofill').val('');
     80                }, 100 );
     81
    7682        });
    7783
    7884})(jQuery);
  • wp-login.php

     
    500500        login_header(__('Reset Password'), '<p class="message reset-pass">' . __('Enter your new password below.') . '</p>', $errors );
    501501
    502502?>
    503 <form name="resetpassform" id="resetpassform" action="<?php echo esc_url( site_url( 'wp-login.php?action=resetpass&key=' . urlencode( $_GET['key'] ) . '&login=' . urlencode( $_GET['login'] ), 'login_post' ) ); ?>" method="post">
     503<form name="resetpassform" id="resetpassform" action="<?php echo esc_url( site_url( 'wp-login.php?action=resetpass&key=' . urlencode( $_GET['key'] ) . '&login=' . urlencode( $_GET['login'] ), 'login_post' ) ); ?>" method="post" autocomplete="off">
    504504        <input type="hidden" id="user_login" value="<?php echo esc_attr( $_GET['login'] ); ?>" autocomplete="off" />
    505505
    506506        <p>