Making WordPress.org


Ignore:
Timestamp:
03/17/2020 11:49:28 PM (5 years ago)
Author:
coffee2code
Message:

Support Forums, Ratings: Remove inline microdata from plugin/theme review templates.

Props dufresnesteven, jonoaldersonwp.
Fixes #5043.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/support-forums/inc/class-ratings-compat.php

    r9251 r9600  
    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>
     
    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        ?>
Note: See TracChangeset for help on using the changeset viewer.