Make WordPress Core


Ignore:
Timestamp:
11/11/2013 01:15:57 PM (11 years ago)
Author:
SergeyBiryukov
Message:

Inline documentation for hooks in wp-admin/edit-link-form.php.

props raamdev.
fixes #25447.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/edit-link-form.php

    r25868 r26080  
    3131add_meta_box('linkadvanceddiv', __('Advanced'), 'link_advanced_meta_box', null, 'normal', 'core');
    3232
    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 */
     34do_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*/
     43do_action( 'add_meta_boxes_link', $link );
    3544
    3645/** This action is documented in wp-admin/edit-form-advanced.php */
    37 do_action('do_meta_boxes', 'link', 'normal', $link);
     46do_action( 'do_meta_boxes', 'link', 'normal', $link );
    3847/** This action is documented in wp-admin/edit-form-advanced.php */
    39 do_action('do_meta_boxes', 'link', 'advanced', $link);
     48do_action( 'do_meta_boxes', 'link', 'advanced', $link );
    4049/** This action is documented in wp-admin/edit-form-advanced.php */
    41 do_action('do_meta_boxes', 'link', 'side', $link);
     50do_action( 'do_meta_boxes', 'link', 'side', $link );
    4251
    4352add_screen_option('layout_columns', array('max' => 2, 'default' => 2) );
     
    8796<div class="inside">
    8897    <input type="text" name="link_name" size="30" maxlength="255" value="<?php echo esc_attr($link->link_name); ?>" id="link_name" />
    89     <p><?php _e('Example: Nifty blogging software'); ?></p>
     98    <p><?php _e('Example: Nifty blogging software'); ?></p>
    9099</div>
    91100</div>
     
    95104<div class="inside">
    96105    <input type="text" name="link_url" size="30" maxlength="255" class="code" value="<?php echo esc_attr($link->link_url); ?>" id="link_url" />
    97     <p><?php _e('Example: <code>http://wordpress.org/</code> &#8212; don&#8217;t forget the <code>http://</code>'); ?></p>
     106    <p><?php _e('Example: <code>http://wordpress.org/</code> &#8212; don&#8217;t forget the <code>http://</code>'); ?></p>
    98107</div>
    99108</div>
     
    103112<div class="inside">
    104113    <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     <p><?php _e('This will be shown when someone hovers over the link in the blogroll, or optionally below the link.'); ?></p>
     114    <p><?php _e('This will be shown when someone hovers over the link in the blogroll, or optionally below the link.'); ?></p>
    106115</div>
    107116</div>
     
    111120<?php
    112121
    113 do_action('submitlink_box');
     122/**
     123 * Fires before the Save meta box in the sidebar.
     124 *
     125 * @since 2.5.0
     126 */
     127do_action( 'submitlink_box' );
    114128$side_meta_boxes = do_meta_boxes( 'link', 'side', $link );
    115129
Note: See TracChangeset for help on using the changeset viewer.