<?php
/** This action is documented in wp-admin/includes/meta-boxes.php */
do_action( 'post_submitbox_start', null
);
?>
<div id="delete-action">
<?php
if ( !
empty( $_GET['action'
] ) && 'edit' ===
$_GET['action'
] &&
current_user_can( 'manage_links'
) ) { printf( '<a class="submitdelete deletion" href="%s" onclick="return confirm( \'%s\' );">%s</a>',
wp_nonce_url( "link.php?action=delete&link_id=
$link->link_id", 'delete-bookmark_' .
$link->link_id
),
/* translators: %s: Link name. */
esc_js( sprintf( __( "You are about to delete this link '%s'\n 'Cancel' to stop, 'OK' to delete."
),
$link->link_name
) ),
__( 'Delete'
) );
} ?>
</div>
<div id="publishing-action">
<?php
if ( !
empty( $link->link_id
) ) { ?>
<input name="save" type="submit" class="button button-primary button-large" id="publish" value="<?php
esc_attr_e( 'Update Link'
); ?>" />
<?php
} else { ?>
<input name="save" type="submit" class="button button-primary button-large" id="publish" value="<?php
esc_attr_e( 'Add Link'
); ?>" />