Changeset 6142 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-main/inc/template-tags.php
- Timestamp:
- 11/17/2017 01:31:00 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
r6136 r6142 11 11 * Displays a table row with release information. 12 12 * 13 * @param array 13 * @param array $release 14 14 */ 15 function release_row( $release ) {15 function release_row( $release ) { 16 16 ?> 17 17 <tr> … … 35 35 function get_downloads_url() { 36 36 static $downloads_url = null; 37 37 38 if ( is_null( $downloads_url ) ) { 38 39 $releases_page = get_page_by_path( 'txt-download' ); 40 39 41 if ( ! $releases_page ) { 40 42 $releases_page = get_page_by_path( 'releases' ); … … 44 46 $downloads_url = get_permalink( $releases_page ); 45 47 } 48 46 49 if ( ! $downloads_url ) { 47 50 $downloads_url = 'https://wordpress.org/downloads/'; 48 51 } 49 52 } 53 50 54 return $downloads_url; 51 55 }
Note: See TracChangeset
for help on using the changeset viewer.