Ticket #11511: 11511.patch
| File 11511.patch, 1.1 KB (added by , 17 years ago) |
|---|
-
wp-admin/edit-tags.php
190 190 $tags_per_page = apply_filters( 'edit_tags_per_page', $tags_per_page ); 191 191 $tags_per_page = apply_filters( 'tagsperpage', $tags_per_page ); // Old filter 192 192 193 $searchterms = isset($_GET['s']) ? trim($_GET['s']) : ''; 194 if ( strlen($searchterms) ) 195 $total = 1; 196 else 197 $total = ceil(wp_count_terms($taxonomy) / $tags_per_page); 198 193 199 $page_links = paginate_links( array( 194 200 'base' => add_query_arg( 'pagenum', '%#%' ), 195 201 'format' => '', 196 202 'prev_text' => __('«'), 197 203 'next_text' => __('»'), 198 'total' => ceil(wp_count_terms($taxonomy) / $tags_per_page),204 'total' => $total, 199 205 'current' => $pagenum 200 206 )); 201 207 … … 231 237 </tfoot> 232 238 233 239 <tbody id="the-list" class="list:tag"> 234 <?php 235 236 $searchterms = isset( $_GET['s'] ) ? trim( $_GET['s'] ) : ''; 237 238 $count = tag_rows( $pagenum, $tags_per_page, $searchterms, $taxonomy ); 239 ?> 240 <?php $count = tag_rows( $pagenum, $tags_per_page, $searchterms, $taxonomy ); ?> 240 241 </tbody> 241 242 </table> 242 243
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)