Skip to:
Content

bbPress.org


Ignore:
Timestamp:
12/08/2008 05:02:16 PM (18 years ago)
Author:
sambauers
Message:

Allow bb_paginate_links() to deal with ?page=# format correctly without relying on bb_repermalink() to fix the URL first. This helps plugins that want to use the function. Props _ck_ for investigations, fixes #1003

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-includes/functions.bb-template.php

    r1826 r1830  
    11161116                                $format = '&page=%#%';
    11171117                        } else {
    1118                                 $uri = preg_replace('!?page=[0-9]+!', '%_%', $uri );
     1118                                $uri = preg_replace('!\?page=[0-9]+!', '%_%', $uri );
    11191119                                $format = '?page=%#%';
    11201120                        }
Note: See TracChangeset for help on using the changeset viewer.