Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#41912 closed defect (bug) (duplicate)

PHPDoc in JSCode

Reported by: butuzov's profile Butuzov Owned by:
Milestone: Priority: normal
Severity: normal Version: 4.8.1
Component: Login and Registration Keywords:
Focuses: javascript, administration Cc:


Found while troubleshooting wp-login.php issues.

At lines 967-973,
PHP doc comment for filter enable_login_autofocus copy/pasted outside php tags.

 * Filters whether to print the call to `wp_attempt_focus()` on the login screen.
 * @since 4.8.0
 * @param bool $print Whether to print the function call. Default true.

Itself harmless as /* ... */ is also multiline comment in JavaScript, but is it place for it?

Change History (2)

#1 @SergeyBiryukov
7 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

Hi @Butuzov, welcome to WordPress Trac!

Thanks for the report, this was already fixed in #41176.

#2 @Butuzov
7 years ago

@SergeyBiryukov thank you.

I haven't found this ticket before submitting mine.

cheers and have a good day!

Note: See TracTickets for help on using tickets.