mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 18:01:42 +01:00
Change the menus Link Target to checkbox, props nacin, fixes #17521
git-svn-id: http://svn.automattic.com/wordpress/trunk@18748 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
95e8b34104
commit
29f13c28b3
@ -143,13 +143,10 @@ class Walker_Nav_Menu_Edit extends Walker_Nav_Menu {
|
||||
<input type="text" id="edit-menu-item-attr-title-<?php echo $item_id; ?>" class="widefat edit-menu-item-attr-title" name="menu-item-attr-title[<?php echo $item_id; ?>]" value="<?php echo esc_attr( $item->post_excerpt ); ?>" />
|
||||
</label>
|
||||
</p>
|
||||
<p class="field-link-target description description-thin">
|
||||
<p class="field-link-target description">
|
||||
<label for="edit-menu-item-target-<?php echo $item_id; ?>">
|
||||
<?php _e( 'Link Target' ); ?><br />
|
||||
<select id="edit-menu-item-target-<?php echo $item_id; ?>" class="widefat edit-menu-item-target" name="menu-item-target[<?php echo $item_id; ?>]">
|
||||
<option value="" <?php selected( $item->target, ''); ?>><?php _e('Same window or tab'); ?></option>
|
||||
<option value="_blank" <?php selected( $item->target, '_blank'); ?>><?php _e('New window or tab'); ?></option>
|
||||
</select>
|
||||
<input type="checkbox" id="edit-menu-item-target-<?php echo $item_id; ?>" value="_blank" name="menu-item-target[<?php echo $item_id; ?>]"<?php checked( $item->target, '_blank' ); ?> />
|
||||
<?php _e( 'Open link in a new window/tab' ); ?>
|
||||
</label>
|
||||
</p>
|
||||
<p class="field-css-classes description description-thin">
|
||||
|
Loading…
Reference in New Issue
Block a user