WordPress.org

Make WordPress Core

Ticket #25447: 25447.5.diff

File 25447.5.diff, 1.8 KB (added by raamdev, 8 years ago)

Recreating patch as standalone patch

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

    diff --git wp-admin/edit-link-form.php wp-admin/edit-link-form.php
    index ad2c6e5..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 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) );
    4453
    wp_nonce_field( 'meta-box-order', 'meta-box-order-nonce', false ); ?> 
    110119<div id="postbox-container-1" class="postbox-container">
    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
    116130?>