Make WordPress Core


Ignore:
Timestamp:
04/14/2005 04:24:22 AM (20 years ago)
Author:
ryan
Message:

Fix post paging regex to avoid regex collision between posts with slugs that differ only by a trailing number. http://mosquito.wordpress.org/view.php?id=1235

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/functions.php

    r2527 r2535  
    880880    $currentmonth = mysql2date('m', $post->post_date);
    881881    $numpages = 1;
     882    $page = get_query_var('page');
    882883    if (!$page)
    883884        $page = 1;
    884     if (isset($p))
     885    if (is_single() || is_page())
    885886        $more = 1;
    886887    $content = $post->post_content;
Note: See TracChangeset for help on using the changeset viewer.