Changeset 5432 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/extras.php
- Timestamp:
- 04/29/2017 02:52:50 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/extras.php
r3281 r5432 156 156 $pagenum = trailingslashit( preg_replace( '/\?.*/', '', get_pagenum_link() ) ); 157 157 $pagination_base = $wp_rewrite->pagination_base; 158 158 159 159 $args['base'] = user_trailingslashit( $pagenum . "{$pagination_base}/%#%" ); 160 160 } … … 166 166 /** 167 167 * Removes 'page/1' from pagination links with a query string. 168 * 168 * 169 169 * @param string $page_links Page links HTML. 170 170 * @return string Page links HTML. … … 180 180 181 181 $query_string = preg_quote( $query_string[1], '#' ); 182 182 183 183 // Remove 'page/1' from the entire output since it's not needed. 184 184 $page_links = preg_replace(
Note: See TracChangeset
for help on using the changeset viewer.