WordPress.org

Making WordPress.org

Ticket #5043: 5043.diff

File 5043.diff, 2.1 KB (added by dufresnesteven, 8 months ago)

Remove inline microdata

  • wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php

    diff --git wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php
    index 1af49b4d9..b5111bb5f 100644
    class Ratings_Compat { 
    188188                // Undo the above filter, for titles of replies to reviews. See #meta4254
    189189                add_filter( 'bbp_get_topic_last_topic_title', array( $this, 'undo_topic_title' ), 10, 1 );
    190190?>
    191 <link itemprop="applicationCategory" href="http://schema.org/OtherApplication" />
    192 <span itemprop="offers" itemscope itemtype="http://schema.org/Offer">
    193         <meta itemprop="price" content="0.00" />
    194         <meta itemprop="priceCurrency" content="USD" />
    195         <span itemprop="seller" itemscope itemtype="http://schema.org/Organization">
    196                 <span itemprop="name" content="WordPress.org"></span>
    197         </span>
    198 </span>
    199 
    200 <div class="review-ratings" itemprop="aggregateRating" itemscope itemtype="http://schema.org/AggregateRating">
     191<div class="review-ratings">
    201192        <div class="col-3">
    202                 <div class="reviews-about" style="display:none;" itemprop="itemReviewed"><?php echo esc_html( $this->object->post_title ); ?></div>
     193                <div class="reviews-about" style="display:none;"><?php echo esc_html( $this->object->post_title ); ?></div>
    203194                <div class="reviews-total-count"><?php
    204195                        printf(
    205196                                /* translators: %s: number of reviews */
    206197                                _n( '%s review', '%s reviews', $this->reviews_count, 'wporg-forums' ),
    207                                 '<span itemprop="reviewCount">' . number_format_i18n( $this->reviews_count ) . '</span>'
     198                                '<span>' . number_format_i18n( $this->reviews_count ) . '</span>'
    208199                        );
    209200                ?></div>
    210201                <?php
    class Ratings_Compat { 
    252243                                /* translators: 1: number of stars in rating, 2: total number of stars (5) */
    253244                                __( '%1$s out of %2$s stars', 'wporg-forums' ),
    254245                                round( isset( $this->avg_rating ) ? $this->avg_rating : 0, 1 ),
    255                                 '<span itemprop="bestRating">5</span>'
     246                                '<span>5</span>'
    256247                        );
    257248                ?>
    258249                <div class="reviews-submit-link">