[wp-trac] [WordPress Trac] #39488: Twenty Seventeen: Type and name in @param tags are the wrong way around

WordPress Trac noreply at wordpress.org
Thu Jan 5 18:48:57 UTC 2017


#39488: Twenty Seventeen: Type and name in @param tags are the wrong way around
---------------------------+----------------------------------------
 Reporter:  ocean90        |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  4.8
Component:  Bundled Theme  |    Version:  4.7
 Severity:  normal         |   Keywords:  needs-patch good-first-bug
  Focuses:  docs           |
---------------------------+----------------------------------------
 Example:

 {{{#!php
 <?php
 /**
  * Filter number of front page sections in Twenty Seventeen.
  *
  * @since Twenty Seventeen 1.0
  *
  * @param $num_sections integer
  */
 $num_sections = apply_filters( 'twentyseventeen_front_page_sections', 4 );
 }}}

 `integer` should be `int` and the whole tag should be `@param int
 $num_sections <description>`.

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


More information about the wp-trac mailing list