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-screenshots.php

    r5197 r6287  
    11<?php
    22namespace WordPressdotorg\Plugin_Directory\Shortcodes;
     3
    34use WordPressdotorg\Plugin_Directory\Template;
    45use WordPressdotorg\Plugin_Directory\Plugin_i18n;
    … …  
    2021                // All indexed from 1.
    2122                $descriptions = get_post_meta( $plugin->ID, 'screenshots', true ) ?: array();
    22                 $screen_shots = get_post_meta( $plugin->ID, 'assets_screenshots', true ) ?: array();;
     23                $screen_shots = get_post_meta( $plugin->ID, 'assets_screenshots', true ) ?: array();
    2324
    2425                if ( empty( $screen_shots ) ) {
    … …  
    3334                 */
    3435                foreach ( $screen_shots as $image ) {
    35                         $screen_shot = sprintf( '<a href="%1$s" rel="nofollow"><img class="screenshot" src="%1$s" alt="" /></a>',
     36                        $screen_shot = sprintf(
     37                                '<a href="%1$s" rel="nofollow"><img class="screenshot" src="%1$s" alt="" /></a>',
    3638                                esc_url( Template::get_asset_url( $plugin, $image ) )
    3739                        );
Note: See TracChangeset for help on using the changeset viewer.