Making WordPress.org


Ignore:
Timestamp:
05/21/2017 01:51:02 PM (8 years ago)
Author:
ocean90
Message:

Translate: Avoid PHP notices if a translation set doesn't exist.

Also add a few missing esc_url() calls and a custom 404 template with a link back to the homepage.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/wporg-gp-customizations/templates/projects-wp-themes.php

    r4187 r5502  
    3434                <li><span>Projects</span>
    3535                    <ul>
    36                         <li><a href="<?php echo gp_url_join( gp_url_project( $project ), 'contributors' ); ?>">Contributors</a></li>
    37                         <li><a href="<?php echo gp_url_join( gp_url_project( $project ), 'language-packs' ); ?>">Language Packs</a></li>
     36                        <li><a href="<?php echo esc_url( gp_url_join( gp_url_project( $project ), 'contributors' ) ); ?>">Contributors</a></li>
     37                        <li><a href="<?php echo esc_url( gp_url_join( gp_url_project( $project ), 'language-packs' ) ); ?>">Language Packs</a></li>
    3838                    </ul>
    3939                </li>
     
    8181                <tr>
    8282                    <th title="<?php echo esc_attr( $gp_locale->wp_locale ); ?>">
    83                         <a href="<?php echo gp_url( gp_url_join( 'locale', $gp_locale->slug, $set_slug, $project->path ) ); ?>">
     83                        <a href="<?php echo esc_url( gp_url( gp_url_join( 'locale', $gp_locale->slug, $set_slug, $project->path ) ) ); ?>">
    8484                            <?php echo esc_html( $gp_locale->english_name ); ?>
    8585                        </a>
Note: See TracChangeset for help on using the changeset viewer.