Make WordPress Core

Ticket #10203: link-template-10203-1.diff

File link-template-10203-1.diff, 518 bytes (added by nikolov.tmw, 10 years ago)

Removes array_filter(), which preserves the arguments even when they are empty.

  • wp-includes/link-template.php

     
    22172217 * @param string $nxtlabel Optional Label for next pages.
    22182218 */
    22192219function posts_nav_link( $sep = '', $prelabel = '', $nxtlabel = '' ) {
    2220         $args = array_filter( compact('sep', 'prelabel', 'nxtlabel') );
     2220        $args = compact('sep', 'prelabel', 'nxtlabel');
    22212221        echo get_posts_nav_link($args);
    22222222}
    22232223