Changeset 26080
- Timestamp:
- 11/11/2013 01:15:57 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/edit-link-form.php
r25868 r26080 31 31 add_meta_box('linkadvanceddiv', __('Advanced'), 'link_advanced_meta_box', null, 'normal', 'core'); 32 32 33 do_action('add_meta_boxes', 'link', $link); 34 do_action('add_meta_boxes_link', $link); 33 /** This action is documented in wp-admin/edit-form-advanced.php */ 34 do_action( 'add_meta_boxes', 'link', $link ); 35 36 /** 37 * Fires when link-specific meta boxes are added. 38 * 39 * @since 3.0.0 40 * 41 * @param object $link Link object. 42 */ 43 do_action( 'add_meta_boxes_link', $link ); 35 44 36 45 /** This action is documented in wp-admin/edit-form-advanced.php */ 37 do_action( 'do_meta_boxes', 'link', 'normal', $link);46 do_action( 'do_meta_boxes', 'link', 'normal', $link ); 38 47 /** This action is documented in wp-admin/edit-form-advanced.php */ 39 do_action( 'do_meta_boxes', 'link', 'advanced', $link);48 do_action( 'do_meta_boxes', 'link', 'advanced', $link ); 40 49 /** This action is documented in wp-admin/edit-form-advanced.php */ 41 do_action( 'do_meta_boxes', 'link', 'side', $link);50 do_action( 'do_meta_boxes', 'link', 'side', $link ); 42 51 43 52 add_screen_option('layout_columns', array('max' => 2, 'default' => 2) ); … … 87 96 <div class="inside"> 88 97 <input type="text" name="link_name" size="30" maxlength="255" value="<?php echo esc_attr($link->link_name); ?>" id="link_name" /> 89 98 <p><?php _e('Example: Nifty blogging software'); ?></p> 90 99 </div> 91 100 </div> … … 95 104 <div class="inside"> 96 105 <input type="text" name="link_url" size="30" maxlength="255" class="code" value="<?php echo esc_attr($link->link_url); ?>" id="link_url" /> 97 106 <p><?php _e('Example: <code>http://wordpress.org/</code> — don’t forget the <code>http://</code>'); ?></p> 98 107 </div> 99 108 </div> … … 103 112 <div class="inside"> 104 113 <input type="text" name="link_description" size="30" maxlength="255" value="<?php echo isset($link->link_description) ? esc_attr($link->link_description) : ''; ?>" id="link_description" /> 105 114 <p><?php _e('This will be shown when someone hovers over the link in the blogroll, or optionally below the link.'); ?></p> 106 115 </div> 107 116 </div> … … 111 120 <?php 112 121 113 do_action('submitlink_box'); 122 /** 123 * Fires before the Save meta box in the sidebar. 124 * 125 * @since 2.5.0 126 */ 127 do_action( 'submitlink_box' ); 114 128 $side_meta_boxes = do_meta_boxes( 'link', 'side', $link ); 115 129
Note: See TracChangeset
for help on using the changeset viewer.