Changeset 11204 for trunk/wp-admin/edit-link-form.php
- Timestamp:
- 05/05/2009 07:43:53 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/edit-link-form.php
r11180 r11204 61 61 <?php // Hidden submit button early on so that the browser chooses the right button when form is submitted with Return key ?> 62 62 <div style="display:none;"> 63 <input type="submit" name="save" value="<?php _ea('Save'); ?>" />63 <input type="submit" name="save" value="<?php esc_attr_e('Save'); ?>" /> 64 64 </div> 65 65 … … 92 92 <div id="publishing-action"> 93 93 <?php if ( !empty($link->link_id) ) { ?> 94 <input name="save" type="submit" class="button-primary" id="publish" tabindex="4" accesskey="p" value="<?php _ea('Update Link') ?>" />94 <input name="save" type="submit" class="button-primary" id="publish" tabindex="4" accesskey="p" value="<?php esc_attr_e('Update Link') ?>" /> 95 95 <?php } else { ?> 96 <input name="save" type="submit" class="button-primary" id="publish" tabindex="4" accesskey="p" value="<?php _ea('Add Link') ?>" />96 <input name="save" type="submit" class="button-primary" id="publish" tabindex="4" accesskey="p" value="<?php esc_attr_e('Add Link') ?>" /> 97 97 <?php } ?> 98 98 </div> … … 140 140 <p id="link-category-add" class="wp-hidden-child"> 141 141 <label class="invisible" for="newcat"><?php _e( '+ Add New Category' ); ?></label> 142 <input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php _ea( 'New category name' ); ?>" aria-required="true" />143 <input type="button" id="category-add-submit" class="add:categorychecklist:linkcategorydiv button" value="<?php _ea( 'Add' ); ?>" />142 <input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php esc_attr_e( 'New category name' ); ?>" aria-required="true" /> 143 <input type="button" id="category-add-submit" class="add:categorychecklist:linkcategorydiv button" value="<?php esc_attr_e( 'Add' ); ?>" /> 144 144 <?php wp_nonce_field( 'add-link-category', '_ajax_nonce', false ); ?> 145 145 <span id="category-ajax-response"></span> … … 186 186 <tr> 187 187 <th style="width: 20%;" scope="row"><label for="link_rel"><?php /* translators: xfn: http://gmpg.org/xfn/ */ _e('rel:') ?></label></th> 188 <td style="width: 80%;"><input type="text" name="link_rel" id="link_rel" size="50" value="<?php echo ( isset( $link->link_rel ) ? attr($link->link_rel) : ''); ?>" /></td>188 <td style="width: 80%;"><input type="text" name="link_rel" id="link_rel" size="50" value="<?php echo ( isset( $link->link_rel ) ? esc_attr($link->link_rel) : ''); ?>" /></td> 189 189 </tr> 190 190 <tr> … … 306 306 <tr class="form-field"> 307 307 <th valign="top" scope="row"><label for="link_image"><?php _e('Image Address') ?></label></th> 308 <td><input type="text" name="link_image" class="code" id="link_image" size="50" value="<?php echo ( isset( $link->link_image ) ? attr($link->link_image) : ''); ?>" style="width: 95%" /></td>308 <td><input type="text" name="link_image" class="code" id="link_image" size="50" value="<?php echo ( isset( $link->link_image ) ? esc_attr($link->link_image) : ''); ?>" style="width: 95%" /></td> 309 309 </tr> 310 310 <tr class="form-field"> 311 311 <th valign="top" scope="row"><label for="rss_uri"><?php _e('RSS Address') ?></label></th> 312 <td><input name="link_rss" class="code" type="text" id="rss_uri" value="<?php echo ( isset( $link->link_rss ) ? attr($link->link_rss) : ''); ?>" size="50" style="width: 95%" /></td>312 <td><input name="link_rss" class="code" type="text" id="rss_uri" value="<?php echo ( isset( $link->link_rss ) ? esc_attr($link->link_rss) : ''); ?>" size="50" style="width: 95%" /></td> 313 313 </tr> 314 314 <tr class="form-field"> … … 321 321 <?php 322 322 for ($r = 0; $r < 10; $r++) { 323 echo(' <option value="'. attr($r) .'" ');323 echo(' <option value="'. esc_attr($r) .'" '); 324 324 if ( isset($link->link_rating) && $link->link_rating == $r) 325 325 echo 'selected="selected"'; … … 375 375 <h3><label for="link_name"><?php _e('Name') ?></label></h3> 376 376 <div class="inside"> 377 <input type="text" name="link_name" size="30" tabindex="1" value="<?php echo attr($link->link_name); ?>" id="link_name" />377 <input type="text" name="link_name" size="30" tabindex="1" value="<?php echo esc_attr($link->link_name); ?>" id="link_name" /> 378 378 <p><?php _e('Example: Nifty blogging software'); ?></p> 379 379 </div> … … 383 383 <h3><label for="link_url"><?php _e('Web Address') ?></label></h3> 384 384 <div class="inside"> 385 <input type="text" name="link_url" size="30" class="code" tabindex="1" value="<?php echo attr($link->link_url); ?>" id="link_url" />385 <input type="text" name="link_url" size="30" class="code" tabindex="1" value="<?php echo esc_attr($link->link_url); ?>" id="link_url" /> 386 386 <p><?php _e('Example: <code>http://wordpress.org/</code> — don’t forget the <code>http://</code>'); ?></p> 387 387 </div> … … 391 391 <h3><label for="link_description"><?php _e('Description') ?></label></h3> 392 392 <div class="inside"> 393 <input type="text" name="link_description" size="30" tabindex="1" value="<?php echo isset($link->link_description) ? attr($link->link_description) : ''; ?>" id="link_description" />393 <input type="text" name="link_description" size="30" tabindex="1" value="<?php echo isset($link->link_description) ? esc_attr($link->link_description) : ''; ?>" id="link_description" /> 394 394 <p><?php _e('This will be shown when someone hovers over the link in the blogroll, or optionally below the link.'); ?></p> 395 395 </div> … … 405 405 <input type="hidden" name="action" value="save" /> 406 406 <input type="hidden" name="link_id" value="<?php echo (int) $link_id; ?>" /> 407 <input type="hidden" name="order_by" value="<?php echo attr($order_by); ?>" />407 <input type="hidden" name="order_by" value="<?php echo esc_attr($order_by); ?>" /> 408 408 <input type="hidden" name="cat_id" value="<?php echo (int) $cat_id ?>" /> 409 409 <?php else: ?>
Note: See TracChangeset
for help on using the changeset viewer.