Make WordPress Core

Ticket #20706: edit-link-form.php.patch

File edit-link-form.php.patch, 864 bytes (added by AVReidy, 12 years ago)
  • wp-admin/edit-link-form.php

     
    6161<?php screen_icon(); ?>
    6262<h2><?php echo esc_html( $title ); ?>  <a href="link-add.php" class="add-new-h2"><?php echo esc_html_x('Add New', 'link'); ?></a></h2>
    6363
    64 <?php if ( isset( $_GET['added'] ) ) : ?>
    65 <div id="message" class="updated"><p><?php _e('Link added.'); ?></p></div>
    66 <?php endif; ?>
     64<?php
     65if ( isset( $_GET['added'] ) ) {
     66        if ($_GET['added'] == 'true') { // if a link was added
     67                _e('<div id="message" class="updated"><p>Link added.</p></div>');
     68        } else {
     69                _e('<div id="message" class="error"><p>Could not add link. Make sure you specify a link name and address.</p></div>');
     70        }
     71}
     72?>
    6773
    6874<?php
    6975if ( !empty($form) )