Making WordPress.org

Ticket #4995: 4995.diff

File 4995.diff, 719 bytes (added by dufresnesteven, 5 years ago)

This patch updates the page x of x section without moving it to the left of the '|'. We could also do some string replacement to push it over if this doesn't cut it :) Unsure if its worth it..

  • wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php

    diff --git wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php wordpress.org/public_html/wp-content/themes/pub/wporg-support/functions.php
    index 742542ead..951d9df94 100644
    function wporg_get_global_header() { 
    201201
    202202function wporg_support_bbp_raw_title( $title ) {
    203203        if ( get_query_var( 'paged' ) && ! is_404() ) {
    204                 $title .= sprintf( ' - page %s', get_query_var( 'paged' ) );
     204                global $wp_query;
     205                $title .= sprintf( ' Page %s of %s ', get_query_var( 'paged' ), $wp_query->max_num_pages );
    205206        }
    206207
    207208        return $title;