Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (8 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/twentyfifteen/sidebar.php

    r30394 r42343  
    88 */
    99
    10 if ( has_nav_menu( 'primary' ) || has_nav_menu( 'social' ) || is_active_sidebar( 'sidebar-1' )  ) : ?>
     10if ( has_nav_menu( 'primary' ) || has_nav_menu( 'social' ) || is_active_sidebar( 'sidebar-1' ) ) : ?>
    1111    <div id="secondary" class="secondary">
    1212
     
    1515                <?php
    1616                    // Primary navigation menu.
    17                     wp_nav_menu( array(
    18                         'menu_class'     => 'nav-menu',
    19                         'theme_location' => 'primary',
    20                     ) );
     17                    wp_nav_menu(
     18                        array(
     19                            'menu_class'     => 'nav-menu',
     20                            'theme_location' => 'primary',
     21                        )
     22                    );
    2123                ?>
    2224            </nav><!-- .main-navigation -->
     
    2729                <?php
    2830                    // Social links navigation menu.
    29                     wp_nav_menu( array(
    30                         'theme_location' => 'social',
    31                         'depth'          => 1,
    32                         'link_before'    => '<span class="screen-reader-text">',
    33                         'link_after'     => '</span>',
    34                     ) );
     31                    wp_nav_menu(
     32                        array(
     33                            'theme_location' => 'social',
     34                            'depth'          => 1,
     35                            'link_before'    => '<span class="screen-reader-text">',
     36                            'link_after'     => '</span>',
     37                        )
     38                    );
    3539                ?>
    3640            </nav><!-- .social-navigation -->
Note: See TracChangeset for help on using the changeset viewer.