[wp-trac] [WordPress Trac] #41912: PHPDoc in JSCode

WordPress Trac noreply at wordpress.org
Mon Sep 18 16:18:10 UTC 2017


#41912: PHPDoc in JSCode
----------------------------------------+-----------------------------
 Reporter:  Butuzov                     |      Owner:
     Type:  defect (bug)                |     Status:  new
 Priority:  normal                      |  Milestone:  Awaiting Review
Component:  Login and Registration      |    Version:  4.8.1
 Severity:  normal                      |   Keywords:
  Focuses:  javascript, administration  |
----------------------------------------+-----------------------------
 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?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/41912>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list