Making WordPress.org


Ignore:
Timestamp:
04/29/2017 02:52:50 PM (9 years ago)
Author:
ocean90
Message:

developer.wordpress.org: Trim trailing whitespace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-developer/inc/extras.php

    r3281 r5432  
    156156        $pagenum = trailingslashit( preg_replace( '/\?.*/', '', get_pagenum_link() ) );
    157157        $pagination_base = $wp_rewrite->pagination_base;
    158        
     158
    159159        $args['base'] = user_trailingslashit(  $pagenum . "{$pagination_base}/%#%" );
    160160    }
     
    166166/**
    167167 * Removes 'page/1' from pagination links with a query string.
    168  * 
     168 *
    169169 * @param  string $page_links Page links HTML.
    170170 * @return string             Page links HTML.
     
    180180
    181181        $query_string = preg_quote( $query_string[1], '#' );
    182    
     182
    183183        // Remove 'page/1' from the entire output since it's not needed.
    184184        $page_links = preg_replace(
Note: See TracChangeset for help on using the changeset viewer.