Make WordPress Core

Ticket #29808: 29808.7.diff

File 29808.7.diff, 3.8 KB (added by obenland, 10 years ago)
  • src/wp-includes/link-template.php

     
    21952195 * @param array $args {
    21962196 *     Optional. Default post navigation arguments.
    21972197 *
    2198  *     @type string $prev_text Anchor text to display in the previous post link.
    2199  *                             Default: `<span class="meta-nav">&larr;</span> %title`.
    2200  *     @type string $next_text Anchor text to display in the next post link.
    2201  *                             Default: `%title <span class="meta-nav">&rarr;</span>`.
     2198 *     @type string $prev_text Anchor text to display in the previous post link. Default: `%title`.
     2199 *     @type string $next_text Anchor text to display in the next post link. Default: `%title`.
    22022200 * }
    22032201 * @return string Markup for post links.
    22042202 */
    22052203function get_the_post_navigation( $args = array() ) {
    22062204        $args = wp_parse_args( $args, array(
    2207                 'prev_text' => _x( '<span class="meta-nav">&larr;</span> %title', 'Previous post link' ),
    2208                 'next_text' => _x( '%title <span class="meta-nav">&rarr;</span>', 'Next post link' ),
     2205                'prev_text' => '%title',
     2206                'next_text' => '%title',
    22092207        ) );
    22102208
    22112209        $navigation = '';
     
    22412239 * @param array $args {
    22422240 *     Optional. Default paging navigation arguments.
    22432241 *
    2244  *     @type string $prev_text Anchor text to display in the previous posts link.
    2245  *                             Default: `<span class="meta-nav">&larr;</span> Older posts`.
    2246  *     @type string $next_text Anchor text to display in the next posts link.
    2247  *                             Default: `Newer posts <span class="meta-nav">&rarr;</span>`.
     2242 *     @type string $prev_text Anchor text to display in the previous posts link. Default: `Older posts`.
     2243 *     @type string $next_text Anchor text to display in the next posts link. Default: `Newer posts`.
    22482244 * }
    22492245 * @return string Markup for paging links.
    22502246 */
     
    22542250        // Don't print empty markup if there's only one page.
    22552251        if ( $GLOBALS['wp_query']->max_num_pages > 1 ) {
    22562252                $args = wp_parse_args( $args, array(
    2257                         'prev_text' => __( '<span class="meta-nav">&larr;</span> Older posts' ),
    2258                         'next_text' => __( 'Newer posts <span class="meta-nav">&rarr;</span>' ),
     2253                        'prev_text' => __( 'Older posts' ),
     2254                        'next_text' => __( 'Newer posts' ),
    22592255                ) );
    22602256
    22612257                $next_link = get_next_posts_link( $args['prev_text'] );
     
    23062302 *     @type int    $total              The total amount of pages. Default: Value of 'max_num_pages' of current query.
    23072303 *     @type int    $current            The current page number. Default: Value of 'paged' query var.
    23082304 *     @type bool   $prev_next          Whether to include previous and next links. Default: true.
    2309  *     @type string $prev_text          Anchor text to display in the previous posts link. Default: `&larr; Previous`.
    2310  *     @type string $next_text          Anchor text to display in the next posts link. Default: `Next &rarr;`.
     2305 *     @type string $prev_text          Anchor text to display in the previous posts link. Default: `Previous`.
     2306 *     @type string $next_text          Anchor text to display in the next posts link. Default: `Next`.
    23112307 *     @type bool   $show_all           Whether to show all pages.
    23122308 *                                      Default: false, shows short list of the pages near the current page.
    23132309 *     @type int    $end_size           Amount of numbers on either the start and the end list edges. Default: 1.
     
    23272323        if ( $GLOBALS['wp_query']->max_num_pages > 1 ) {
    23282324                $args = wp_parse_args( $args, array(
    23292325                        'mid_size'  => 1,
    2330                         'prev_text' => __( '&larr; Previous' ),
    2331                         'next_text' => __( 'Next &rarr;' ),
     2326                        'prev_text' => __( 'Previous' ),
     2327                        'next_text' => __( 'Next' ),
    23322328                ) );
    23332329                // Make sure we get plain links, so we can work with it.
    23342330                $args['type'] = 'plain';