WordPress.org

Make WordPress Core

Changeset 5226


Ignore:
Timestamp:
04/10/07 07:38:36 (8 years ago)
Author:
matt
Message:

This fixes the broken paginate_links on the comments and users page, however the way this function works is rather awkward and should be redone. There is far too much complexity for what it's trying to do.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit-comments.php

    r5118 r5226  
    8888 
    8989$page_links = paginate_links( array( 
    90     'base' => clean_url( add_query_arg( 'apage', '%#%' ) ), 
    91     'format' => '', 
     90    'base' => 'edit-comments.php?%_%', 
     91    'format' => 'apage=%#%', 
    9292    'total' => ceil($total / 20), 
    9393    'current' => $page 
  • trunk/wp-admin/upload.php

    r5126 r5226  
    105105            } 
    106106            $page_links = paginate_links( array( 
    107                 'base' => add_query_arg( 'paged', '%#%' ), 
    108                 'format' => '', 
     107                'base' => 'users.php?%_%', 
     108                'format' => 'paged=%#%', 
    109109                'total' => ceil($total / $per), 
    110110                'current' => $paged ? $paged : 1, 
Note: See TracChangeset for help on using the changeset viewer.