Make WordPress Core


Ignore:
Timestamp:
01/19/2005 03:23:38 PM (21 years ago)
Author:
rboren
Message:

Include legacy template files in the common file list only if they exist.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/templates.php

    r2005 r2105  
    101101?>
    102102<h3><?php _e('Common'); ?></h3>
    103     <?php $common_files = array('index.php', 'wp-layout.css', 'wp-comments.php', 'wp-comments-popup.php', '.htaccess', 'my-hacks.php'); ?>
     103    <?php $common_files = array('index.php', '.htaccess', 'my-hacks.php');
     104 $old_files = array('wp-layout.css', 'wp-comments.php', 'wp-comments-popup.php');
     105 foreach ($old_files as $old_file) {
     106     if (file_exists(ABSPATH . $old_file))
     107         $common_files[] = $old_file;
     108 } ?>
    104109  <ul>
    105110     <?php foreach ($common_files as $common_file) : ?>
Note: See TracChangeset for help on using the changeset viewer.