Make WordPress Core

Changeset 40954


Ignore:
Timestamp:
06/26/2017 08:36:28 PM (7 years ago)
Author:
SergeyBiryukov
Message:

Login and Registration: Prevent the enable_login_autofocus filter DocBlock from spilling into JS code.

Props chris@….
Fixes #41176.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-login.php

    r40652 r40954  
    965965}
    966966
     967<?php
    967968/**
    968969 * Filters whether to print the call to `wp_attempt_focus()` on the login screen.
     
    972973 * @param bool $print Whether to print the function call. Default true.
    973974 */
    974 <?php if ( apply_filters( 'enable_login_autofocus', true ) && ! $error ) { ?>
     975if ( apply_filters( 'enable_login_autofocus', true ) && ! $error ) { ?>
    975976wp_attempt_focus();
    976977<?php } ?>
Note: See TracChangeset for help on using the changeset viewer.