Make WordPress Core


Ignore:
Timestamp:
08/08/2008 05:05:10 PM (16 years ago)
Author:
westi
Message:

Lots of fixes for Notices when WP_DEBUG is set. See #6669 props santosj.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/link-manager.php

    r7883 r8589  
    8080<p id="post-search">
    8181    <label class="hidden" for="post-search-input"><?php _e( 'Search Links' ); ?>:</label>
    82     <input type="text" id="post-search-input" name="s" value="<?php echo attribute_escape(stripslashes($_GET['s'])); ?>" />
     82    <input type="text" id="post-search-input" name="s" value="<?php echo ( isset( $_GET['s'] ) ? attribute_escape(stripslashes($_GET['s'])) : ''); ?>" />
    8383    <input type="submit" value="<?php _e( 'Search Links' ); ?>" class="button" />
    8484</p>
     
    151151    <tbody>
    152152<?php
     153    $i = 0; // It is slower incrementing an undefined and valueless variable.
     154
    153155    foreach ($links as $link) {
    154156        $link = sanitize_bookmark($link);
Note: See TracChangeset for help on using the changeset viewer.