WordPress.org

Making WordPress.org

Changeset 3740


Ignore:
Timestamp:
07/29/2016 11:30:06 AM (4 years ago)
Author:
ocean90
Message:

Forums Theme: Don't hardcode the search URL, use bbp_get_search_url() instead.

File:
1 edited

Legend:

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

    r1707 r3740  
    3030
    3131                    <div class="bbp-template-notice">
    32                         <p><?php _e( 'Before posting a new topic, be sure to <a href="/search/">search</a> to see if one has been started already.',                              'wporg-forums' ); ?></p>
     32                        <p><?php
     33                            printf(
     34                                /* translators: %s: Search URL */
     35                                __( 'Before posting a new topic, be sure to <a href="%s">search</a> to see if one has been started already.', 'wporg-forums' ),
     36                                esc_url( bbp_get_search_url() )
     37                            );
     38                        ?></p>
    3339                        <p><?php _e( 'Having a problem? Asking a question? Make sure to read the <a href="http://codex.wordpress.org/Forum_Welcome">Forum Welcome</a> to find out how to maximize your odds of getting help!', 'wporg-forums' ); ?></p>
    3440                    </div>
Note: See TracChangeset for help on using the changeset viewer.