Making WordPress.org


Ignore:
Timestamp:
12/19/2017 04:22:37 PM (9 years ago)
Author:
obenland
Message:

PLugins: Clean up formatting with phpcbf

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/plugins/plugin-directory/shortcodes/class-developers.php

    r5920 r6287  
    11<?php
    22namespace WordPressdotorg\Plugin_Directory\Shortcodes;
     3
    34use WordPressdotorg\Plugin_Directory\Plugin_I18n;
    45use WordPressdotorg\Plugin_Directory\Tools;
     
    1516         */
    1617        static function display() {
    17                 $post   = get_post();
    18                 $slug   = $post->post_name;
    19                 $title  = get_the_title( $post );
     18                $post  = get_post();
     19                $slug  = $post->post_name;
     20                $title = get_the_title( $post );
    2021
    2122                $output = '<div class="plugin-contributors">';
     
    4445                        $output .= '<p>';
    4546
    46                         $wp_locales = wp_list_pluck( $locales,'wp_locale' );
     47                        $wp_locales    = wp_list_pluck( $locales, 'wp_locale' );
    4748                        $locales_count = get_sites( [
    4849                                'network_id' => WPORG_GLOBAL_NETWORK_ID,
     
    7677                }
    7778
    78                 $output .= '<p>' . sprintf( '<a href="%1$s">%2$s</a>',
     79                $output .= '<p>' . sprintf(
     80                        '<a href="%1$s">%2$s</a>',
    7981                        esc_url( 'https://translate.wordpress.org/projects/wp-plugins/' . $slug ),
    8082                        sprintf(
     
    8486                        )
    8587                ) . '</p>';
    86 
    8788
    8889                $output .= '<h3>' . __( 'Interested in development?', 'wporg-plugins' ) . '</h3>';
     
    115116                }
    116117                $output .= '</div>';
     118
    117119                return $output;
    118120        }
Note: See TracChangeset for help on using the changeset viewer.