Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (7 years 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-content/themes/twentyeleven/404.php

    r31265 r42343  
    2828                        <h2 class="widgettitle"><?php _e( 'Most Used Categories', 'twentyeleven' ); ?></h2>
    2929                        <ul>
    30                         <?php wp_list_categories( array( 'orderby' => 'count', 'order' => 'DESC', 'show_count' => 1, 'title_li' => '', 'number' => 10 ) ); ?>
     30                        <?php
     31                        wp_list_categories(
     32                            array(
     33                                'orderby'    => 'count',
     34                                'order'      => 'DESC',
     35                                'show_count' => 1,
     36                                'title_li'   => '',
     37                                'number'     => 10,
     38                            )
     39                        );
     40?>
    3141                        </ul>
    3242                    </div>
     
    3545                    /* translators: %1$s: smilie */
    3646                    $archive_content = '<p>' . sprintf( __( 'Try looking in the monthly archives. %1$s', 'twentyeleven' ), convert_smilies( ':)' ) ) . '</p>';
    37                     the_widget( 'WP_Widget_Archives', array( 'count' => 0, 'dropdown' => 1 ), array( 'after_title' => '</h2>' . $archive_content ) );
     47                    the_widget(
     48                        'WP_Widget_Archives', array(
     49                            'count'    => 0,
     50                            'dropdown' => 1,
     51                        ), array( 'after_title' => '</h2>' . $archive_content )
     52                    );
    3853                    ?>
    3954
Note: See TracChangeset for help on using the changeset viewer.