[wp-trac] [WordPress Trac] #30229: Typos in get_items_per_page docblock for $option filter

WordPress Trac noreply at wordpress.org
Sat Nov 1 13:24:08 UTC 2014


#30229: Typos in get_items_per_page docblock for $option filter
----------------------------+-----------------------------
 Reporter:  bobbingwide     |      Owner:
     Type:  defect (bug)    |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Administration  |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:  docs            |
----------------------------+-----------------------------
 The docblock in WP_List_Item::get_items_per_page() for the $options filter
 hook contains two minor typos:
 1. 'netework' which should be 'network'.
 2. 'edit_$post_type}' missing the '_per_page' suffix.

 I also noticed a couple of other tiny opportunities to improve it.
 1. Remove 'may' from 'Possible values may include'
 2. Add 'edit_post_per_page' and 'edit_page_per_page' before the generic
 'edit_${post_type}_per_page.

 I also notice that some of the parameters to protected functions are
 missing, but the @return is documented. I haven't addressed that in the
 first patch.

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


More information about the wp-trac mailing list