Changeset 8103 for branches/crazyhorse/wp-admin/edit-pages.php
- Timestamp:
- 06/16/2008 09:08:49 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/crazyhorse/wp-admin/edit-pages.php
r7998 r8103 118 118 119 119 <div class="tablenav"> 120 121 <?php 122 $pagenum = absint( $_GET['pagenum'] ); 123 if ( empty($pagenum) ) 124 $pagenum = 1; 125 if( !$per_page || $pre_page < 0 ) 126 $per_page = 20; 127 128 $num_pages = ceil(count($posts) / $per_page); 129 $page_links = paginate_links( array( 130 'base' => add_query_arg( 'pagenum', '%#%' ), 131 'format' => '', 132 'total' => $num_pages, 133 'current' => $pagenum 134 )); 135 136 if ( $page_links ) 137 echo "<div class='tablenav-pages'>$page_links</div>"; 138 ?> 120 139 121 140 <div class="alignleft"> … … 152 171 </thead> 153 172 <tbody> 154 <?php page_rows($posts ); ?>173 <?php page_rows($posts, $pagenum, $per_page); ?> 155 174 </tbody> 156 175 </table> … … 170 189 171 190 <div class="tablenav"> 191 <?php 192 if ( $page_links ) 193 echo "<div class='tablenav-pages'>$page_links</div>"; 194 ?> 172 195 <br class="clear" /> 173 196 </div>
Note: See TracChangeset
for help on using the changeset viewer.