Changeset 5838
- Timestamp:
- 08/24/2017 02:12:46 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-hooks.php
r5778 r5838 382 382 $site_url = get_post_meta( $topic_id, self::SITE_URL_META, true ); 383 383 384 // Display site URL for logged-in users. 385 if ( is_user_logged_in() && $site_url ) { 386 printf( '<p class="wporg-bbp-topic-site-url">%1$s <a href="%2$s" rel="nofollow">%2$s</a></p>', 387 __( 'Site URL:', 'wporg-forums' ), 388 esc_url( $site_url ) 389 ); 384 if ( $site_url ) { 385 // Display site URL for logged-in users only. 386 if ( is_user_logged_in() ) { 387 printf( '<p class="wporg-bbp-topic-site-url">%1$s <a href="%2$s" rel="nofollow">%2$s</a></p>', 388 __( 'The page I need help with:', 'wporg-forums' ), 389 esc_url( $site_url ) 390 ); 391 } else { 392 printf( '<p class="wporg-bbp-topic-site-url">%1$s <em>%2$s</em></p>', 393 __( 'The page I need help with:', 'wporg-forums' ), 394 sprintf( __( '[<a href="%s">log in</a> to see the link]', 'wporg-forums' ), wp_login_url() ) 395 ); 396 } 390 397 } 391 398 } … … 402 409 ?> 403 410 <p> 404 <label for="site_url"><?php _e( ' URL of the site orpage you need help with:', 'wporg-forums' ) ?></label><br />411 <label for="site_url"><?php _e( 'Link to the page you need help with:', 'wporg-forums' ) ?></label><br /> 405 412 <input type="text" id="site_url" value="<?php echo esc_attr( $site_url ); ?>" size="40" name="site_url" maxlength="100" /> 406 413 </p>
Note: See TracChangeset
for help on using the changeset viewer.