Making WordPress.org

Ticket #2576: 2576.2.patch

File 2576.2.patch, 2.1 KB (added by netweb, 7 years ago)
  • themes/wporg-support/bbpress/content-single-topic-lead.php

    diff --git themes/wporg-support/bbpress/content-single-topic-lead.php themes/wporg-support/bbpress/content-single-topic-lead.php
    index 685fd8e..f51d744 100644
    if ( bbp_is_single_view() || bbp_is_search_results() ) : ?> 
    5454                                <?php
    5555                                bbp_user_nicename( bbp_get_topic_author_id(), array(
    5656                                        'before' => '<p class="bbp-user-nicename">(@',
    57                                         'after'  => ')</p><br />',
     57                                        'after'  => ')</p>',
    5858                                ) );
    5959                                ?>
    6060
     61                                <?php if ( current_user_can( 'moderate', bbp_get_topic_id() ) && 'bbp_blocked' === bbp_get_user_role( bbp_get_topic_author_id() ) ) : ?>
     62                                        <p class="wporg-bbp-user-is-blocked">[<?php esc_attr_e( 'This user is blocked', 'wporg-forums' ); ?>]</p>
     63                                <?php endif; ?>
     64
     65                                <br>
     66
    6167                                <?php
    6268                                $title = get_user_option( 'title', bbp_get_topic_author_id() );
    6369                                if ( $title ) :
  • themes/wporg-support/bbpress/loop-single-reply.php

    diff --git themes/wporg-support/bbpress/loop-single-reply.php themes/wporg-support/bbpress/loop-single-reply.php
    index 2c8b75f..d8181ed 100644
    if ( bbp_is_single_view() || bbp_is_search_results() || bbp_is_single_user_repli 
    4444                ) );
    4545                ?>
    4646
     47                <?php if ( current_user_can( 'moderate', bbp_get_reply_topic_id() ) && 'bbp_blocked' === bbp_get_user_role( bbp_get_reply_author_id() ) ) : ?>
     48                        <p class="wporg-bbp-user-is-blocked">[<?php esc_html_e( 'This user is blocked', 'wporg-support' ); ?>]</p>
     49                <?php endif; ?>
     50
    4751                <?php
    4852                $title = get_user_option( 'title', bbp_get_reply_author_id() );
    4953                if ( $title ) :
  • themes/wporg-support/sass/site/_bbpress.scss

    diff --git themes/wporg-support/sass/site/_bbpress.scss themes/wporg-support/sass/site/_bbpress.scss
    index 65ac741..85d936a 100644
    section { 
    422422                        color: #f00;
    423423                }
    424424
     425                p.wporg-bbp-user-is-blocked {
     426                        display: inline-block;
     427                        color: #f00;
     428                }
     429
    425430                .bbp-pagination {
    426431                        font-size: ms(-2);
    427432                        float: none;