Make WordPress Core

Changeset 170


Ignore:
Timestamp:
06/04/2003 09:21:14 PM (23 years ago)
Author:
mikelittle
Message:

Test we have some posts to avoid foreach error.
Capitalisation of WordPress

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/index.php

    r158 r170  
    2828<div id="content">
    2929
    30 <?php foreach ($posts as $post) { start_b2(); ?>
     30<?php if ($posts) { foreach ($posts as $post) { start_b2(); ?>
    3131<?php the_date('','<h2>','</h2>'); ?>
    3232
     
    5050<?php include('b2comments.php'); ?>
    5151
    52     <?php } ?>
     52    <?php } } // end foreach, end if any posts ?>
    5353
    5454</div>
    5555
    56 <p class="credit"><?php timer_stop(1); ?> <cite>Powered by <a href="http://wordpress.org"><strong>Wordpress</strong></a></cite></p>
     56<p class="credit"><?php timer_stop(1); ?> <cite>Powered by <a href="http://wordpress.org"><strong>WordPress</strong></a></cite></p>
    5757
    5858
Note: See TracChangeset for help on using the changeset viewer.