Separate meta box context into page and context to accommodate postbox API changes. see #5798

git-svn-id: https://develop.svn.wordpress.org/trunk@6762 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren
2008-02-08 21:06:15 +00:00
parent 4c6d9571f9
commit 2c80b3fb04
4 changed files with 30 additions and 9 deletions

View File

@@ -99,6 +99,8 @@ function xfn_check($class, $value = '', $deprecated = '') {
</div>
</div>
<?php do_meta_boxes('link', 'normal', $link); ?>
<h2><?php _e('Advanced Options'); ?></h2>
<div id="linktargetdiv" class="postbox <?php echo postbox_classes('linktargetdiv', 'link'); ?>">
@@ -274,6 +276,8 @@ function xfn_check($class, $value = '', $deprecated = '') {
</div>
</div>
<?php do_meta_boxes('link', 'advanced', $link); ?>
<?php if ( $link_id ) : ?>
<input type="hidden" name="action" value="save" />
<input type="hidden" name="link_id" value="<?php echo (int) $link_id; ?>" />