Making WordPress.org

Changeset 4673


Ignore:
Timestamp:
01/13/2017 11:46:55 PM (8 years ago)
Author:
SergeyBiryukov
Message:

Support Theme: For strings without placeholders, switch to _e() instead of printf( __() ).

See #2151.

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

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/bbpress/form-topic.php

    r4248 r4673  
    168168
    169169                            <div>
    170                                 <label for="bbp_topic_edit_reason"><?php printf( __( 'Optional reason for editing:', 'wporg-forums' ), bbp_get_current_user_name() ); ?></label><br />
     170                                <label for="bbp_topic_edit_reason"><?php _e( 'Optional reason for editing:', 'wporg-forums' ); ?></label><br />
    171171                                <input type="text" value="<?php bbp_form_topic_edit_reason(); ?>" tabindex="<?php bbp_tab_index(); ?>" size="40" name="bbp_topic_edit_reason" id="bbp_topic_edit_reason" />
    172172                            </div>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-support/header.php

    r4248 r4673  
    2828            <div class="site-branding">
    2929                <?php if ( is_front_page() ) : ?>
    30                     <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php _ex( 'Support','Site title', 'wporg-forums' ); ?></a></h1>
     30                    <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php _ex( 'Support', 'Site title', 'wporg-forums' ); ?></a></h1>
    3131
    3232                    <p class="site-description">
    3333                        <?php
    3434                        /* Translators: subhead */
    35                         printf( __( 'We\'ve got a variety of resources to help you get the most out of WordPress.', 'wporg-forums' ) );
     35                        _e( 'We\'ve got a variety of resources to help you get the most out of WordPress.', 'wporg-forums' );
    3636                        ?>
    3737                    </p>
    3838                    <?php get_search_form(); ?>
    3939                <?php else : ?>
    40                     <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php _ex( 'Support','Site title', 'wporg-forums' ); ?></a></p>
     40                    <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php _ex( 'Support', 'Site title', 'wporg-forums' ); ?></a></p>
    4141
    4242                    <nav id="site-navigation" class="main-navigation" role="navigation">
Note: See TracChangeset for help on using the changeset viewer.