WordPress.org

Making WordPress.org

Changeset 1148


Ignore:
Timestamp:
01/16/2015 12:16:54 AM (6 years ago)
Author:
obenland
Message:

WP.org Themes: Use home_url() to account for subfolder MS installs.

See #745.

Location:
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/functions.php

    r1147 r1148  
    1414 * as indicating support for post thumbnails.
    1515 */
    16 define('WPORGPATH', 'https://wordpress.org/');
    1716function wporg_themes_setup() {
    1817    global $themes_allowedtags, $theme_field_defaults;
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-themes/index.php

    r1034 r1148  
    3838
    3939            <ul class="filter-links">
    40                 <li><a href="/browse/featured/" data-sort="featured"><?php _ex( 'Featured', 'themes' ); ?></a></li>
    41                 <li><a href="/browse/popular/" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></a></li>
    42                 <li><a href="/browse/new/" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></a></li>
     40                <li><a href="<?php echo esc_url( home_url( 'browse/featured/' ) ); ?>" data-sort="featured"><?php _ex( 'Featured', 'themes' ); ?></a></li>
     41                <li><a href="<?php echo esc_url( home_url( 'browse/popular/' ) ); ?>" data-sort="popular"><?php _ex( 'Popular', 'themes' ); ?></a></li>
     42                <li><a href="<?php echo esc_url( home_url( 'browse/new/' ) ); ?>" data-sort="new"><?php _ex( 'Latest', 'themes' ); ?></a></li>
    4343            </ul>
    4444
Note: See TracChangeset for help on using the changeset viewer.