Check those XFN boxes. fixes #1946

git-svn-id: http://svn.automattic.com/wordpress/trunk@3207 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2005-11-23 23:07:36 +00:00
parent 313e9a406b
commit 9410afb60e
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>