WordPress.org

Making WordPress.org


Ignore:
Timestamp:
07/05/2015 09:01:20 PM (5 years ago)
Author:
ocean90
Message:

Forums theme: Enhance colors and position of form submit buttons.

  • Add missing styles for .screen-reader-text.
  • Update Dashicons for sidebar items.
  • Link user profiles to their global profiles.
  • Remove allowed tags from topic/reply form.

see #376.

File:
1 edited

Legend:

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

    r1702 r1707  
    113113    require WPORGPATH . 'header.php';
    114114}
     115
     116/**
     117 * Link user profiles to their global profiles.
     118 */
     119function wporg_support_profile_url( $user_id ) {
     120    $user = get_userdata( $user_id );
     121
     122    return esc_url( 'https://profiles.wordpress.org/' . $user->user_nicename );
     123}
     124add_filter( 'bbp_pre_get_user_profile_url', 'wporg_support_profile_url' );
    115125
    116126/** bb Base *******************************************************************/
Note: See TracChangeset for help on using the changeset viewer.