WordPress.org

Make WordPress Core

Ticket #25447: 25447.4.diff

File 25447.4.diff, 2.1 KB (added by raamdev, 8 years ago)

Updated patch with requested changes

  • wp-admin/edit-link-form.php

    diff --git wp-admin/edit-link-form.php wp-admin/edit-link-form.php
    index e77b1ea..c004992 100644
    add_meta_box('linktargetdiv', __('Target'), 'link_target_meta_box', null, 'norma 
    3030add_meta_box('linkxfndiv', __('Link Relationship (XFN)'), 'link_xfn_meta_box', null, 'normal', 'core');
    3131add_meta_box('linkadvanceddiv', __('Advanced'), 'link_advanced_meta_box', null, 'normal', 'core');
    3232
    33 /**
    34  * Fires after all built-in meta boxes have been added.
    35  *
    36  * @since 2.7.0
    37  *
    38  * @param string  $post_type Post type.
    39  * @param object  $link      Link being edited.
    40  */
    41 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 );
    4235
    4336/**
    44  * Fires after all built-in meta boxes have been added.
    45  *
    46  * @since 3.0.0
    47  *
    48  * @param object  $link      Link being edited.
    49  */
    50 do_action('add_meta_boxes_link', $link);
     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 );
    5144
    5245/** This action is documented in wp-admin/edit-form-advanced.php */
    53 do_action('do_meta_boxes', 'link', 'normal', $link);
     46do_action( 'do_meta_boxes', 'link', 'normal', $link );
    5447/** This action is documented in wp-admin/edit-form-advanced.php */
    55 do_action('do_meta_boxes', 'link', 'advanced', $link);
     48do_action( 'do_meta_boxes', 'link', 'advanced', $link );
    5649/** This action is documented in wp-admin/edit-form-advanced.php */
    57 do_action('do_meta_boxes', 'link', 'side', $link);
     50do_action( 'do_meta_boxes', 'link', 'side', $link );
    5851
    5952add_screen_option('layout_columns', array('max' => 2, 'default' => 2) );
    6053
    wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?> 
    127120<?php
    128121
    129122/**
    130  * Fires before submit link box.
     123 * Fires before the Save meta box in the sidebar.
    131124 *
    132125 * @since 2.5.0
    133126 */
    134 do_action('submitlink_box');
     127do_action( 'submitlink_box' );
    135128$side_meta_boxes = do_meta_boxes( 'link', 'side', $link );
    136129
    137130?>