Make WordPress Core

Changeset 1236


Ignore:
Timestamp:
05/07/2004 09:05:02 PM (21 years ago)
Author:
saxmatt
Message:

Some fixes for E_ALL.

Location:
trunk
Files:
6 edited

Legend:

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

    r1232 r1236  
    4242   $me = 0 + $category->cat_ID;
    4343   $parent = 0 + $category->category_parent;
    44    $array_category['children'] = $result[$me];
     44    if (isset($result[$me]))   $array_category['children'] = $result[$me];
    4545   $array_category['checked'] = in_array($category->cat_ID, $checked_categories);
    4646   $array_category['cat_name'] = stripslashes($category->cat_name);
     
    5959   if(isset($category['children'])) {
    6060     echo "\n<span class='cat-nest'>\n";
    61      write_nested_categories($category['children'], $count);
     61     write_nested_categories($category['children']);
    6262     echo "</span>\n";
    6363   }
  • trunk/wp-admin/admin-header.php

    r1205 r1236  
    7272?>
    7373
    74 <?php if ($xfn) : ?>
     74<?php if (isset($xfn)) : ?>
    7575<script language="javascript" type="text/javascript">
    7676//<![CDATA[
  • trunk/wp-admin/edit-form-advanced.php

    r1233 r1236  
    44$messages[3] = __('Custom field deleted.');
    55?>
    6 <?php if ($_GET['message']) : ?>
     6<?php if (isset($_GET['message'])) : ?>
    77<div class="updated"><p><?php echo $messages[$_GET['message']]; ?></p></div>
    88<?php endif; ?>
     
    5353<input type="hidden" name="action" value='<?php echo $form_action ?>' />
    5454<?php echo $form_extra ?>
    55 <?php if (2 > $_GET['message']) : ?>
     55<?php if (isset($_GET['message']) && 2 > $_GET['message']) : ?>
    5656<script type="text/javascript">
    5757<!--
  • trunk/wp-admin/menu.php

    r1212 r1236  
    2121
    2222$self = preg_replace('|.*/wp-admin/|i', '', $_SERVER['PHP_SELF']);
     23if (!isset($parent_file)) $parent_file = '';
    2324foreach ($menu as $item) {
    2425    $class = '';
  • trunk/wp-admin/post.php

    r1221 r1236  
    231231        include('edit-form-advanced.php');
    232232
    233         include(ABSPATH.'wp-blog-header.php');
    234233        $post = $wpdb->get_row("SELECT * FROM $tableposts WHERE ID = '$post_ID'");
    235234        ?>
  • trunk/wp-blog-header.php

    r1235 r1236  
    77    die("There doesn't seem to be a <code>wp-config.php</code> file. I need this before we can get started. Need more help? <a href='http://wordpress.org/docs/faq/#wp-config'>We got it</a>. You can <a href='wp-admin/install-config.php'>create a <code>wp-config.php</code> file through a web interface</a>, but this doesn't work for all server setups. The safest way is to manually create the file.");
    88
    9 require($curpath.'/wp-config.php');
     9require_once($curpath . '/wp-config.php');
    1010
    1111/* Process PATH_INFO, if set. */
Note: See TracChangeset for help on using the changeset viewer.