WordPress.org

Make WordPress Core

Ticket #24998: 24998-filter.diff

File 24998-filter.diff, 1.2 KB (added by DrewAPicture, 5 years ago)

wp_auth_check_width filter

  • wp-includes/css/wp-auth-check.css

     
    2525        top: 40px;
    2626        bottom: 20px;
    2727        max-height: 415px;
    28         width: 380px;
    2928        margin: 0 0 0 -190px;
    3029        padding: 30px 0 0;
    3130        background-color: #fbfbfb;
  • wp-includes/functions.php

     
    39633963        // Let plugins change this if they know better.
    39643964        $same_domain = apply_filters( 'wp_auth_check_same_domain', $same_domain );
    39653965        $wrap_class = $same_domain ? 'hidden' : 'hidden fallback';
     3966        $auth_check_width = intval( apply_filters( 'wp_auth_check_width', 380 ) );
     3967        $auth_check_width = 'width:' . $auth_check_width . 'px;';
    39663968
    39673969        ?>
    39683970        <div id="wp-auth-check-wrap" class="<?php echo $wrap_class; ?>">
    39693971        <div id="wp-auth-check-bg"></div>
    3970         <div id="wp-auth-check">
     3972        <div id="wp-auth-check" style="<?php echo $auth_check_width; ?>">
    39713973        <div class="wp-auth-check-close" tabindex="0" title="<?php esc_attr_e('Close'); ?>"></div>
    39723974        <?php
    39733975