[wp-hackers] Paging Fix
    Stephen Sadowski 
    stephen.sadowski at gmail.com
       
    Wed May 11 17:22:34 GMT 2005
    
    
  
I solved this a slightly different way...
On 5/11/05, Ryan Boren <ryan at boren.nu> wrote:
> http://wordpress.org/support/topic/33251
> 
> Please try out the attached patch and make sure paging still works.
> 
> Ryan
> 
> 
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
> 
> 
> 
>
-------------- next part --------------
Index: wp-includes/template-functions-links.php
===================================================================
--- template-functions-links.php (revision 2597)
+++ template-functions-links.php (working copy)
@@ -44,6 +44,9 @@
        $permalink = get_settings('permalink_structure');
+ 	if (!preg_match('/\/$/',$permalink))
+ 		$permalink .= "/";
+
        if ('' != $permalink && 'draft' != $post->post_status) {
                $unixtime = strtotime($post->post_date);
@@ -489,4 +492,4 @@
     }
 }
-?>
\ No newline at end of file
+?>
    
    
More information about the wp-hackers
mailing list