WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (4 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-includes/theme-compat/header.php

    r37985 r42343  
    2020<head>
    2121<link rel="profile" href="http://gmpg.org/xfn/11" />
    22 <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
     22<meta http-equiv="Content-Type" content="<?php bloginfo( 'html_type' ); ?>; charset=<?php bloginfo( 'charset' ); ?>" />
    2323
    2424<title><?php echo wp_get_document_title(); ?></title>
    2525
    26 <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    27 <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
     26<link rel="stylesheet" href="<?php bloginfo( 'stylesheet_url' ); ?>" type="text/css" media="screen" />
     27<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
    2828
    2929<?php if ( file_exists( get_stylesheet_directory() . '/images/kubrickbgwide.jpg' ) ) { ?>
     
    3232<?php
    3333// Checks to see whether it needs a sidebar
    34 if ( empty($withcomments) && !is_single() ) {
     34if ( empty( $withcomments ) && ! is_single() ) {
    3535?>
    36     #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbg-<?php bloginfo('text_direction'); ?>.jpg") repeat-y top; border: none; }
     36    #page { background: url("<?php bloginfo( 'stylesheet_directory' ); ?>/images/kubrickbg-<?php bloginfo( 'text_direction' ); ?>.jpg") repeat-y top; border: none; }
    3737<?php } else { // No sidebar ?>
    38     #page { background: url("<?php bloginfo('stylesheet_directory'); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
     38    #page { background: url("<?php bloginfo( 'stylesheet_directory' ); ?>/images/kubrickbgwide.jpg") repeat-y top; border: none; }
    3939<?php } ?>
    4040
     
    4242<?php } ?>
    4343
    44 <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
     44<?php
     45if ( is_singular() ) {
     46    wp_enqueue_script( 'comment-reply' );}
     47?>
    4548
    4649<?php wp_head(); ?>
     
    5154<div id="header" role="banner">
    5255    <div id="headerimg">
    53         <h1><a href="<?php echo home_url(); ?>/"><?php bloginfo('name'); ?></a></h1>
    54         <div class="description"><?php bloginfo('description'); ?></div>
     56        <h1><a href="<?php echo home_url(); ?>/"><?php bloginfo( 'name' ); ?></a></h1>
     57        <div class="description"><?php bloginfo( 'description' ); ?></div>
    5558    </div>
    5659</div>
Note: See TracChangeset for help on using the changeset viewer.