Changeset 28485
- Timestamp:
- 05/18/2014 10:06:22 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-link-form.php
r28210 r28485 14 14 $heading = sprintf( __( '<a href="%s">Links</a> / Edit Link' ), 'link-manager.php' ); 15 15 $submit_text = __('Update Link'); 16 $form = '<form name="editlink" id="editlink" method="post" action="link.php">';16 $form_name = 'editlink'; 17 17 $nonce_action = 'update-bookmark_' . $link_id; 18 18 } else { 19 19 $heading = sprintf( __( '<a href="%s">Links</a> / Add New Link' ), 'link-manager.php' ); 20 20 $submit_text = __('Add Link'); 21 $form = '<form name="addlink" id="addlink" method="post" action="link.php">';21 $form_name = 'addlink'; 22 22 $nonce_action = 'add-bookmark'; 23 23 } … … 77 77 <?php endif; ?> 78 78 79 <form name="<?php echo esc_attr( $form_name ); ?>" id="<?php echo esc_attr( $form_name ); ?>" method="post" action="link.php"> 79 80 <?php 80 if ( !empty($form) ) 81 echo $form; 82 if ( !empty($link_added) ) 81 if ( ! empty( $link_added ) ) { 83 82 echo $link_added; 83 } 84 84 85 85 wp_nonce_field( $nonce_action );
Note: See TracChangeset
for help on using the changeset viewer.