WordPress.org

Make WordPress Core

Changeset 10278


Ignore:
Timestamp:
12/30/08 22:32:58 (5 years ago)
Author:
ryan
Message:

Don't assume page 1 when cpage is empty. Props filosofo. fixes #8630 for 2.7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.7/wp-includes/link-template.php

    r10240 r10278  
    12621262    $page = get_query_var('cpage'); 
    12631263 
    1264     if ( !$page ) 
    1265         $page = 1; 
    1266  
    12671264    $nextpage = intval($page) + 1; 
    12681265 
     
    13081305    $page = get_query_var('cpage'); 
    13091306 
    1310     if ( !$page ) 
    1311         $page = 1; 
    1312  
    1313     if ( $page <= 1 ) 
     1307    if ( intval($page) <= 1 ) 
    13141308        return; 
    13151309 
Note: See TracChangeset for help on using the changeset viewer.