Changeset 6136
- Timestamp:
- 11/16/2017 06:07:40 PM (7 years ago)
- 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 31 31 * Rerieve the localised downloads link. 32 32 * 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. 34 34 */ 35 35 function get_downloads_url() { 36 36 static $downloads_url = null; 37 37 if ( is_null( $downloads_url ) ) { 38 $releases_page = get_page_by_path( ' releases' );38 $releases_page = get_page_by_path( 'txt-download' ); 39 39 if ( ! $releases_page ) { 40 $releases_page = get_page_by_path( ' txt-download' );40 $releases_page = get_page_by_path( 'releases' ); 41 41 } 42 42
Note: See TracChangeset
for help on using the changeset viewer.