[wp-trac] [WordPress Trac] #43299: function paginate_comments_links() results in a Notice instead of returning an array when 'type' is set to 'array'

WordPress Trac noreply at wordpress.org
Thu Feb 15 17:35:14 UTC 2018


#43299: function paginate_comments_links() results in a Notice instead of returning
an array when 'type' is set to 'array'
------------------------------------+-----------------------------
 Reporter:  anantajitjg             |       Owner:  SergeyBiryukov
     Type:  defect (bug)            |      Status:  reopened
 Priority:  normal                  |   Milestone:  5.0
Component:  Comments                |     Version:  4.9.4
 Severity:  normal                  |  Resolution:
 Keywords:  has-patch dev-feedback  |     Focuses:  template
------------------------------------+-----------------------------
Changes (by anantajitjg):

 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 >> If I use ''paginate_comments_links()'' with no options passed it will
 result in, '''''Notice: Undefined index: type in
 /opt/lampp/htdocs/wordpress/wp-includes/link-template.php on line
 2928''''' when ''WP_DEBUG'' is set to ''true''.

 With reference to #comment:4 I am proposing an alternative solution!

--
Ticket URL: <https://core.trac.wordpress.org/ticket/43299#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list