WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (22 months ago)
Author:
pento
Message:

Code is Poetry.
WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/credits.php

    r42157 r42343  
    4040    echo '<p class="about-description">';
    4141    /* translators: 1: https://wordpress.org/about/, 2: https://make.wordpress.org/ */
    42     printf( __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ),
     42    printf(
     43        __( 'WordPress is created by a <a href="%1$s">worldwide team</a> of passionate individuals. <a href="%2$s">Get involved in WordPress</a>.' ),
    4344        'https://wordpress.org/about/',
    4445        __( 'https://make.wordpress.org/' )
     
    6768    }
    6869
    69     if ( ! empty( $group_data['shuffle'] ) )
     70    if ( ! empty( $group_data['shuffle'] ) ) {
    7071        shuffle( $group_data['data'] ); // We were going to sort by ability to pronounce "hierarchical," but that wouldn't be fair to Matt.
     72    }
    7173
    7274    switch ( $group_data['type'] ) {
    73         case 'list' :
     75        case 'list':
    7476            array_walk( $group_data['data'], '_wp_credits_add_profile_link', $credits['data']['profiles'] );
    7577            echo '<p class="wp-credits-list">' . wp_sprintf( '%l.', $group_data['data'] ) . "</p>\n\n";
    7678            break;
    77         case 'libraries' :
     79        case 'libraries':
    7880            array_walk( $group_data['data'], '_wp_credits_build_object_link' );
    7981            echo '<p class="wp-credits-list">' . wp_sprintf( '%l.', $group_data['data'] ) . "</p>\n\n";
     
    8688                echo '<li class="wp-person" id="wp-person-' . esc_attr( $person_data[2] ) . '">' . "\n\t";
    8789                echo '<a href="' . esc_url( sprintf( $credits['data']['profiles'], $person_data[2] ) ) . '" class="web">';
    88                 $size = 'compact' == $group_data['type'] ? 30 : 60;
    89                 $data = get_avatar_data( $person_data[1] . '@md5.gravatar.com', array( 'size' => $size ) );
    90                 $size *= 2;
     90                $size   = 'compact' == $group_data['type'] ? 30 : 60;
     91                $data   = get_avatar_data( $person_data[1] . '@md5.gravatar.com', array( 'size' => $size ) );
     92                $size  *= 2;
    9193                $data2x = get_avatar_data( $person_data[1] . '@md5.gravatar.com', array( 'size' => $size ) );
    9294                echo '<img src="' . esc_url( $data['url'] ) . '" srcset="' . esc_url( $data2x['url'] ) . ' 2x" class="gravatar" alt="" />' . "\n";
    9395                echo esc_html( $person_data[0] ) . "</a>\n\t";
    94                 if ( ! $compact )
     96                if ( ! $compact ) {
    9597                    echo '<span class="title">' . translate( $person_data[3] ) . "</span>\n";
     98                }
    9699                echo "</li>\n";
    97100            }
    98101            echo "</ul>\n";
    99         break;
     102            break;
    100103    }
    101104}
    102105
    103106?>
    104 <p class="clear"><?php
     107<p class="clear">
     108<?php
    105109    /* translators: %s: https://make.wordpress.org/ */
    106     printf( __( 'Want to see your name in lights on this page? <a href="%s">Get involved in WordPress</a>.' ),
     110    printf(
     111        __( 'Want to see your name in lights on this page? <a href="%s">Get involved in WordPress</a>.' ),
    107112        __( 'https://make.wordpress.org/' )
    108113    );
    109 ?></p>
     114?>
     115</p>
    110116
    111117</div>
Note: See TracChangeset for help on using the changeset viewer.