[wp-trac] [WordPress Trac] #42799: paginate_links() - Replace CSS class 'page-numbers' with 'page-number'

WordPress Trac noreply at wordpress.org
Mon Dec 4 21:52:11 UTC 2017


#42799: paginate_links() - Replace CSS class 'page-numbers' with 'page-number'
----------------------------+-----------------------------
 Reporter:  antonioeatgoat  |      Owner:
     Type:  enhancement     |     Status:  new
 Priority:  normal          |  Milestone:  Awaiting Review
Component:  Themes          |    Version:  trunk
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 Function {{{paginate_links()}}} uses the CSS class `page-numbers` on
 single items, `page-number` would be more correct. The plural name seems
 to indicate a wrapping container.

 It's indeed the same naming expected by Twenty Seventeen:

 {{{
 wp_link_pages( array(
         'before'      => '<div class="page-links">' . __( 'Pages:',
 'twentyseventeen' ),
         'after'       => '</div>',
         'link_before' => '<span class="page-number">',
         'link_after'  => '</span>',
 ) );
 }}}

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


More information about the wp-trac mailing list