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:
parent
313e9a406b
commit
9410afb60e
|
@ -12,7 +12,9 @@ if ( ! empty($link_id) ) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function xfn_check($class, $value = '', $type = 'check') {
|
function xfn_check($class, $value = '', $type = 'check') {
|
||||||
global $link_rel;
|
global $link;
|
||||||
|
|
||||||
|
$link_rel = $link->link_rel;
|
||||||
$rels = preg_split('/\s+/', $link_rel);
|
$rels = preg_split('/\s+/', $link_rel);
|
||||||
|
|
||||||
if ('' != $value && in_array($value, $rels) ) {
|
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">
|
<table class="editform" width="100%" cellspacing="2" cellpadding="5">
|
||||||
<tr>
|
<tr>
|
||||||
<th width="33%" scope="row"><?php _e('rel:') ?></th>
|
<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>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row"><?php _e('<a href="http://gmpg.org/xfn/">XFN</a> Creator:') ?></th>
|
<th scope="row"><?php _e('<a href="http://gmpg.org/xfn/">XFN</a> Creator:') ?></th>
|
||||||
|
|
Loading…
Reference in New Issue