WordPress.org

Make WordPress Core

Changeset 28326


Ignore:
Timestamp:
05/06/2014 09:24:22 PM (7 years ago)
Author:
wonderboymusic
Message:

In paginate_links(), break is unreachable after return.

See #27882.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/general-template.php

    r28274 r28326  
    25012501        $page_links[] = '<a class="next page-numbers" href="' . esc_url( apply_filters( 'paginate_links', $link ) ) . '">' . $next_text . '</a>';
    25022502    endif;
    2503     switch ( $type ) :
     2503    switch ( $type ) {
    25042504        case 'array' :
    25052505            return $page_links;
    2506             break;
     2506
    25072507        case 'list' :
    25082508            $r .= "<ul class='page-numbers'>\n\t<li>";
     
    25102510            $r .= "</li>\n</ul>\n";
    25112511            break;
     2512       
    25122513        default :
    25132514            $r = join("\n", $page_links);
    25142515            break;
    2515     endswitch;
     2516    }
    25162517    return $r;
    25172518}
Note: See TracChangeset for help on using the changeset viewer.