Changeset 1754
- Timestamp:
- 07/19/2015 07:13:25 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-forums/header.php
r1753 r1754 3 3 <div id="headline"> 4 4 <div class="wrapper"> 5 <h2><a href="<?php echo home_url( '/'); ?>"><?php _e( 'Forums', 'wporg-forums' ); ?></a></h2>5 <h2><a href="<?php echo esc_url( home_url( '/' ) ); ?>"><?php _e( 'Forums', 'wporg-forums' ); ?></a></h2> 6 6 <p class="login"> 7 7 <?php if ( is_user_logged_in() ) : ?> 8 <?php echo sprintf( __( 'Howdy, %s', 'wporg-forums' ), '<a href="' . bbp_get_user_profile_url( bbp_get_current_user_id() ) . '">' . bbp_get_current_user_name() . '</a>' ); ?>8 <?php echo sprintf( __( 'Howdy, %s', 'wporg-forums' ), '<a href="' . esc_url( bbp_get_user_profile_url( bbp_get_current_user_id() ) ) . '">' . bbp_get_current_user_name() . '</a>' ); ?> 9 9 10 10 <small>( … … 12 12 <a href="<?php echo esc_url( admin_url() ); ?>"><?php _e( 'Admin', 'wporg-forums' ); ?></a> | 13 13 <?php endif; ?> 14 <a href="<?php bbp_logout_url(); ?>"><?php _e( 'SignOut', 'wporg-forums' ); ?></a>14 <a href="<?php echo esc_url( wp_logout_url() ); ?>"><?php _e( 'Log Out', 'wporg-forums' ); ?></a> 15 15 )</small><br> 16 16 <?php else : ?> 17 17 <?php $current_url = esc_url_raw( 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'] ); ?> 18 <a href="https://wordpress.org/support/bb-login.php?redirect_to=<?php echo urlencode( $current_url ); ?>"><?php _e( 'Log in', 'wporg-forums' ); ?></a>18 <a href="https://wordpress.org/support/bb-login.php?redirect_to=<?php echo urlencode( $current_url ); ?>"><?php _e( 'Log In', 'wporg-forums' ); ?></a> 19 19 <?php endif; ?> 20 20 </p>
Note: See TracChangeset
for help on using the changeset viewer.