Make WordPress Core


Ignore:
Timestamp:
11/04/2008 03:22:24 AM (16 years ago)
Author:
ryan
Message:

Notice fixes from filosofo and Viper007Bond. see #7509

File:
1 edited

Legend:

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

    r9363 r9506  
    7171
    7272<?php
    73 if ( 'edit' == $_GET['action'] && current_user_can('manage_links') )
     73if ( !empty($_GET['action']) && 'edit' == $_GET['action'] && current_user_can('manage_links') )
    7474    echo "<a class='submitdelete' href='" . wp_nonce_url("link.php?action=delete&amp;link_id=$link->link_id", 'delete-bookmark_' . $link->link_id) . "' onclick=\"if ( confirm('" . js_escape( sprintf( __("You are about to delete this link '%s'\n'Cancel' to stop, 'OK' to delete."), $link->link_name )) . "') ) { return true;}return false;\">" . __('Delete&nbsp;link') . "</a>";
    7575?>
     
    342342-->
    343343<?php
    344 echo $form;
    345 echo $link_added;
     344if ( !empty($form) )
     345    echo $form;
     346if ( !empty($link_added) )
     347    echo $link_added;
    346348
    347349wp_nonce_field( $nonce_action );
Note: See TracChangeset for help on using the changeset viewer.