WordPress.org

Making WordPress.org


Ignore:
Timestamp:
11/17/17 13:31:00 (4 weeks ago)
Author:
obenland
Message:

Main: Bring back localized showcase teaser.

Also fixes line-breaking headlines in some locales.

H/t netveb.
See #2861.

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  
    1111 * Displays a table row with release information. 
    1212 * 
    13  * @param array  $release 
     13 * @param array $release 
    1414 */ 
    15 function release_row( $release) { 
     15function release_row( $release ) { 
    1616    ?> 
    1717    <tr> 
     
    3535function get_downloads_url() { 
    3636    static $downloads_url = null; 
     37 
    3738    if ( is_null( $downloads_url ) ) { 
    3839        $releases_page = get_page_by_path( 'txt-download' ); 
     40 
    3941        if ( ! $releases_page ) { 
    4042            $releases_page = get_page_by_path( 'releases' ); 
     
    4446            $downloads_url = get_permalink( $releases_page ); 
    4547        } 
     48 
    4649        if ( ! $downloads_url ) { 
    4750            $downloads_url = 'https://wordpress.org/downloads/'; 
    4851        } 
    4952    } 
     53 
    5054    return $downloads_url; 
    5155} 
Note: See TracChangeset for help on using the changeset viewer.