Check those XFN boxes. fixes #1946

git-svn-id: https://develop.svn.wordpress.org/trunk@3207 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Ryan Boren 2005-11-23 23:07:36 +00:00
parent 7226d2f2b3
commit afbf42d99f
1 changed files with 4 additions and 2 deletions

View File

@ -12,7 +12,9 @@ if ( ! empty($link_id) ) {
}
function xfn_check($class, $value = '', $type = 'check') {
global $link_rel;
global $link;
$link_rel = $link->link_rel;
$rels = preg_split('/\s+/', $link_rel);
if ('' != $value && in_array($value, $rels) ) {
@ -61,7 +63,7 @@ function xfn_check($class, $value = '', $type = 'check') {
<table class="editform" width="100%" cellspacing="2" cellpadding="5">
<tr>
<th width="33%" scope="row"><?php _e('rel:') ?></th>
<td width="67%"><input type="text" name="link_rel" id="rel" size="50" value="<?php echo $link->link_rel; ?>" /></td>
<td width="67%"><input type="text" name="link_rel" id="link_rel" size="50" value="<?php echo $link->link_rel; ?>" /></td>
</tr>
<tr>
<th scope="row"><?php _e('<a href="http://gmpg.org/xfn/">XFN</a> Creator:') ?></th>