Make WordPress Core


Ignore:
Timestamp:
01/12/2019 06:40:16 AM (8 years ago)
Author:
pento
Message:

Coding Standards: Upgrade WPCS to 1.2.1.

This upgrade fixes quite a few false positives, as well as auto-fixing some indenting issues.

Fixes #45956.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin-install.php

    r44420 r44574  
    697697                        <p aria-hidden="true" class="fyi-description"><?php printf( _n( '(based on %s rating)', '(based on %s ratings)', $api->num_ratings ), number_format_i18n( $api->num_ratings ) ); ?></p>
    698698                        <?php
    699 }
    700 
    701 if ( ! empty( $api->ratings ) && array_sum( (array) $api->ratings ) > 0 ) {
    702         ?>
     699                }
     700
     701                if ( ! empty( $api->ratings ) && array_sum( (array) $api->ratings ) > 0 ) {
     702                        ?>
    703703                        <h3><?php _e( 'Reviews' ); ?></h3>
    704704                        <p class="fyi-description"><?php _e( 'Read all reviews on WordPress.org or write your own!' ); ?></p>
     
    728728                                <?php
    729729                        }
    730 }
    731 if ( ! empty( $api->contributors ) ) {
    732         ?>
     730                }
     731                if ( ! empty( $api->contributors ) ) {
     732                        ?>
    733733                        <h3><?php _e( 'Contributors' ); ?></h3>
    734734                        <ul class="contributors">
     
    748748                                ?>
    749749                        </ul>
    750                         <?php if ( ! empty( $api->donate_link ) ) { ?>
     750                                        <?php if ( ! empty( $api->donate_link ) ) { ?>
    751751                                <a target="_blank" href="<?php echo esc_url( $api->donate_link ); ?>"><?php _e( 'Donate to this plugin &#187;' ); ?></a>
    752752                        <?php } ?>
    753                 <?php } ?>
     753                                <?php } ?>
    754754        </div>
    755755        <div id="section-holder" class="wrap">
Note: See TracChangeset for help on using the changeset viewer.