WordPress.org

Making WordPress.org

Changeset 6136


Ignore:
Timestamp:
11/16/2017 06:07:40 PM (6 months ago)
Author:
ocean90
Message:

Main: Prefer txt-download to release in get_downloads_url().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/inc/template-tags.php

    r6135 r6136  
    3131 * Rerieve the localised downloads link.
    3232 *
    33  * Uses the 'releases' page if exists, falling back to the 'txt-download' page for older sites, and finally, the english downloads page.
     33 * Uses the 'txt-download' page if exists, falling back to the 'releases' page for older sites, and finally, the english downloads page.
    3434 */
    3535function get_downloads_url() {
    3636    static $downloads_url = null;
    3737    if ( is_null( $downloads_url ) ) {
    38         $releases_page = get_page_by_path( 'releases' );
     38        $releases_page = get_page_by_path( 'txt-download' );
    3939        if ( ! $releases_page ) {
    40             $releases_page = get_page_by_path( 'txt-download' );
     40            $releases_page = get_page_by_path( 'releases' );
    4141        }
    4242
Note: See TracChangeset for help on using the changeset viewer.