Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/wp-admin/includes
File: meta-boxes.php
* @param WP_Post $post Current post object.
[1000] Fix | Delete
*/
[1001] Fix | Delete
function page_attributes_meta_box( $post ) {
[1002] Fix | Delete
if ( is_post_type_hierarchical( $post->post_type ) ) :
[1003] Fix | Delete
$dropdown_args = array(
[1004] Fix | Delete
'post_type' => $post->post_type,
[1005] Fix | Delete
'exclude_tree' => $post->ID,
[1006] Fix | Delete
'selected' => $post->post_parent,
[1007] Fix | Delete
'name' => 'parent_id',
[1008] Fix | Delete
'show_option_none' => __( '(no parent)' ),
[1009] Fix | Delete
'sort_column' => 'menu_order, post_title',
[1010] Fix | Delete
'echo' => 0,
[1011] Fix | Delete
);
[1012] Fix | Delete
[1013] Fix | Delete
/**
[1014] Fix | Delete
* Filters the arguments used to generate a Pages drop-down element.
[1015] Fix | Delete
*
[1016] Fix | Delete
* @since 3.3.0
[1017] Fix | Delete
*
[1018] Fix | Delete
* @see wp_dropdown_pages()
[1019] Fix | Delete
*
[1020] Fix | Delete
* @param array $dropdown_args Array of arguments used to generate the pages drop-down.
[1021] Fix | Delete
* @param WP_Post $post The current post.
[1022] Fix | Delete
*/
[1023] Fix | Delete
$dropdown_args = apply_filters( 'page_attributes_dropdown_pages_args', $dropdown_args, $post );
[1024] Fix | Delete
$pages = wp_dropdown_pages( $dropdown_args );
[1025] Fix | Delete
if ( ! empty( $pages ) ) :
[1026] Fix | Delete
?>
[1027] Fix | Delete
<p class="post-attributes-label-wrapper parent-id-label-wrapper"><label class="post-attributes-label" for="parent_id"><?php _e( 'Parent' ); ?></label></p>
[1028] Fix | Delete
<?php echo $pages; ?>
[1029] Fix | Delete
<?php
[1030] Fix | Delete
endif; // End empty pages check.
[1031] Fix | Delete
endif; // End hierarchical check.
[1032] Fix | Delete
[1033] Fix | Delete
if ( count( get_page_templates( $post ) ) > 0 && (int) get_option( 'page_for_posts' ) !== $post->ID ) :
[1034] Fix | Delete
$template = ! empty( $post->page_template ) ? $post->page_template : false;
[1035] Fix | Delete
?>
[1036] Fix | Delete
<p class="post-attributes-label-wrapper page-template-label-wrapper"><label class="post-attributes-label" for="page_template"><?php _e( 'Template' ); ?></label>
[1037] Fix | Delete
<?php
[1038] Fix | Delete
/**
[1039] Fix | Delete
* Fires immediately after the label inside the 'Template' section
[1040] Fix | Delete
* of the 'Page Attributes' meta box.
[1041] Fix | Delete
*
[1042] Fix | Delete
* @since 4.4.0
[1043] Fix | Delete
*
[1044] Fix | Delete
* @param string|false $template The template used for the current post.
[1045] Fix | Delete
* @param WP_Post $post The current post.
[1046] Fix | Delete
*/
[1047] Fix | Delete
do_action( 'page_attributes_meta_box_template', $template, $post );
[1048] Fix | Delete
?>
[1049] Fix | Delete
</p>
[1050] Fix | Delete
<select name="page_template" id="page_template">
[1051] Fix | Delete
<?php
[1052] Fix | Delete
/**
[1053] Fix | Delete
* Filters the title of the default page template displayed in the drop-down.
[1054] Fix | Delete
*
[1055] Fix | Delete
* @since 4.1.0
[1056] Fix | Delete
*
[1057] Fix | Delete
* @param string $label The display value for the default page template title.
[1058] Fix | Delete
* @param string $context Where the option label is displayed. Possible values
[1059] Fix | Delete
* include 'meta-box' or 'quick-edit'.
[1060] Fix | Delete
*/
[1061] Fix | Delete
$default_title = apply_filters( 'default_page_template_title', __( 'Default template' ), 'meta-box' );
[1062] Fix | Delete
?>
[1063] Fix | Delete
<option value="default"><?php echo esc_html( $default_title ); ?></option>
[1064] Fix | Delete
<?php page_template_dropdown( $template, $post->post_type ); ?>
[1065] Fix | Delete
</select>
[1066] Fix | Delete
<?php endif; ?>
[1067] Fix | Delete
<?php if ( post_type_supports( $post->post_type, 'page-attributes' ) ) : ?>
[1068] Fix | Delete
<p class="post-attributes-label-wrapper menu-order-label-wrapper"><label class="post-attributes-label" for="menu_order"><?php _e( 'Order' ); ?></label></p>
[1069] Fix | Delete
<input name="menu_order" type="text" size="4" id="menu_order" value="<?php echo esc_attr( $post->menu_order ); ?>" />
[1070] Fix | Delete
<?php
[1071] Fix | Delete
/**
[1072] Fix | Delete
* Fires before the help hint text in the 'Page Attributes' meta box.
[1073] Fix | Delete
*
[1074] Fix | Delete
* @since 4.9.0
[1075] Fix | Delete
*
[1076] Fix | Delete
* @param WP_Post $post The current post.
[1077] Fix | Delete
*/
[1078] Fix | Delete
do_action( 'page_attributes_misc_attributes', $post );
[1079] Fix | Delete
?>
[1080] Fix | Delete
<?php if ( 'page' === $post->post_type && get_current_screen()->get_help_tabs() ) : ?>
[1081] Fix | Delete
<p class="post-attributes-help-text"><?php _e( 'Need help? Use the Help tab above the screen title.' ); ?></p>
[1082] Fix | Delete
<?php
[1083] Fix | Delete
endif;
[1084] Fix | Delete
endif;
[1085] Fix | Delete
}
[1086] Fix | Delete
[1087] Fix | Delete
//
[1088] Fix | Delete
// Link-related Meta Boxes.
[1089] Fix | Delete
//
[1090] Fix | Delete
[1091] Fix | Delete
/**
[1092] Fix | Delete
* Displays link create form fields.
[1093] Fix | Delete
*
[1094] Fix | Delete
* @since 2.7.0
[1095] Fix | Delete
*
[1096] Fix | Delete
* @param object $link Current link object.
[1097] Fix | Delete
*/
[1098] Fix | Delete
function link_submit_meta_box( $link ) {
[1099] Fix | Delete
?>
[1100] Fix | Delete
<div class="submitbox" id="submitlink">
[1101] Fix | Delete
[1102] Fix | Delete
<div id="minor-publishing">
[1103] Fix | Delete
[1104] Fix | Delete
<?php // Hidden submit button early on so that the browser chooses the right button when form is submitted with Return key. ?>
[1105] Fix | Delete
<div style="display:none;">
[1106] Fix | Delete
<?php submit_button( __( 'Save' ), '', 'save', false ); ?>
[1107] Fix | Delete
</div>
[1108] Fix | Delete
[1109] Fix | Delete
<div id="minor-publishing-actions">
[1110] Fix | Delete
<div id="preview-action">
[1111] Fix | Delete
<?php if ( ! empty( $link->link_id ) ) { ?>
[1112] Fix | Delete
<a class="preview button" href="<?php echo $link->link_url; ?>" target="_blank"><?php _e( 'Visit Link' ); ?></a>
[1113] Fix | Delete
<?php } ?>
[1114] Fix | Delete
</div>
[1115] Fix | Delete
<div class="clear"></div>
[1116] Fix | Delete
</div>
[1117] Fix | Delete
[1118] Fix | Delete
<div id="misc-publishing-actions">
[1119] Fix | Delete
<div class="misc-pub-section misc-pub-private">
[1120] Fix | Delete
<label for="link_private" class="selectit"><input id="link_private" name="link_visible" type="checkbox" value="N" <?php checked( $link->link_visible, 'N' ); ?> /> <?php _e( 'Keep this link private' ); ?></label>
[1121] Fix | Delete
</div>
[1122] Fix | Delete
</div>
[1123] Fix | Delete
[1124] Fix | Delete
</div>
[1125] Fix | Delete
[1126] Fix | Delete
<div id="major-publishing-actions">
[1127] Fix | Delete
<?php
[1128] Fix | Delete
/** This action is documented in wp-admin/includes/meta-boxes.php */
[1129] Fix | Delete
do_action( 'post_submitbox_start', null );
[1130] Fix | Delete
?>
[1131] Fix | Delete
<div id="delete-action">
[1132] Fix | Delete
<?php
[1133] Fix | Delete
if ( ! empty( $_GET['action'] ) && 'edit' === $_GET['action'] && current_user_can( 'manage_links' ) ) {
[1134] Fix | Delete
printf(
[1135] Fix | Delete
'<a class="submitdelete deletion" href="%s" onclick="return confirm( \'%s\' );">%s</a>',
[1136] Fix | Delete
wp_nonce_url( "link.php?action=delete&amp;link_id=$link->link_id", 'delete-bookmark_' . $link->link_id ),
[1137] Fix | Delete
/* translators: %s: Link name. */
[1138] Fix | Delete
esc_js( sprintf( __( "You are about to delete this link '%s'\n 'Cancel' to stop, 'OK' to delete." ), $link->link_name ) ),
[1139] Fix | Delete
__( 'Delete' )
[1140] Fix | Delete
);
[1141] Fix | Delete
}
[1142] Fix | Delete
?>
[1143] Fix | Delete
</div>
[1144] Fix | Delete
[1145] Fix | Delete
<div id="publishing-action">
[1146] Fix | Delete
<?php if ( ! empty( $link->link_id ) ) { ?>
[1147] Fix | Delete
<input name="save" type="submit" class="button button-primary button-large" id="publish" value="<?php esc_attr_e( 'Update Link' ); ?>" />
[1148] Fix | Delete
<?php } else { ?>
[1149] Fix | Delete
<input name="save" type="submit" class="button button-primary button-large" id="publish" value="<?php esc_attr_e( 'Add Link' ); ?>" />
[1150] Fix | Delete
<?php } ?>
[1151] Fix | Delete
</div>
[1152] Fix | Delete
<div class="clear"></div>
[1153] Fix | Delete
</div>
[1154] Fix | Delete
<?php
[1155] Fix | Delete
/**
[1156] Fix | Delete
* Fires at the end of the Publish box in the Link editing screen.
[1157] Fix | Delete
*
[1158] Fix | Delete
* @since 2.5.0
[1159] Fix | Delete
*/
[1160] Fix | Delete
do_action( 'submitlink_box' );
[1161] Fix | Delete
?>
[1162] Fix | Delete
<div class="clear"></div>
[1163] Fix | Delete
</div>
[1164] Fix | Delete
<?php
[1165] Fix | Delete
}
[1166] Fix | Delete
[1167] Fix | Delete
/**
[1168] Fix | Delete
* Displays link categories form fields.
[1169] Fix | Delete
*
[1170] Fix | Delete
* @since 2.6.0
[1171] Fix | Delete
*
[1172] Fix | Delete
* @param object $link Current link object.
[1173] Fix | Delete
*/
[1174] Fix | Delete
function link_categories_meta_box( $link ) {
[1175] Fix | Delete
?>
[1176] Fix | Delete
<div id="taxonomy-linkcategory" class="categorydiv">
[1177] Fix | Delete
<ul id="category-tabs" class="category-tabs">
[1178] Fix | Delete
<li class="tabs"><a href="#categories-all"><?php _e( 'All categories' ); ?></a></li>
[1179] Fix | Delete
<li class="hide-if-no-js"><a href="#categories-pop"><?php _ex( 'Most Used', 'categories' ); ?></a></li>
[1180] Fix | Delete
</ul>
[1181] Fix | Delete
[1182] Fix | Delete
<div id="categories-all" class="tabs-panel">
[1183] Fix | Delete
<ul id="categorychecklist" data-wp-lists="list:category" class="categorychecklist form-no-clear">
[1184] Fix | Delete
<?php
[1185] Fix | Delete
if ( isset( $link->link_id ) ) {
[1186] Fix | Delete
wp_link_category_checklist( $link->link_id );
[1187] Fix | Delete
} else {
[1188] Fix | Delete
wp_link_category_checklist();
[1189] Fix | Delete
}
[1190] Fix | Delete
?>
[1191] Fix | Delete
</ul>
[1192] Fix | Delete
</div>
[1193] Fix | Delete
[1194] Fix | Delete
<div id="categories-pop" class="tabs-panel" style="display: none;">
[1195] Fix | Delete
<ul id="categorychecklist-pop" class="categorychecklist form-no-clear">
[1196] Fix | Delete
<?php wp_popular_terms_checklist( 'link_category' ); ?>
[1197] Fix | Delete
</ul>
[1198] Fix | Delete
</div>
[1199] Fix | Delete
[1200] Fix | Delete
<div id="category-adder" class="wp-hidden-children">
[1201] Fix | Delete
<a id="category-add-toggle" href="#category-add" class="taxonomy-add-new"><?php _e( '+ Add New Category' ); ?></a>
[1202] Fix | Delete
<p id="link-category-add" class="wp-hidden-child">
[1203] Fix | Delete
<label class="screen-reader-text" for="newcat">
[1204] Fix | Delete
<?php
[1205] Fix | Delete
/* translators: Hidden accessibility text. */
[1206] Fix | Delete
_e( '+ Add New Category' );
[1207] Fix | Delete
?>
[1208] Fix | Delete
</label>
[1209] Fix | Delete
<input type="text" name="newcat" id="newcat" class="form-required form-input-tip" value="<?php esc_attr_e( 'New category name' ); ?>" aria-required="true" />
[1210] Fix | Delete
<input type="button" id="link-category-add-submit" data-wp-lists="add:categorychecklist:link-category-add" class="button" value="<?php esc_attr_e( 'Add' ); ?>" />
[1211] Fix | Delete
<?php wp_nonce_field( 'add-link-category', '_ajax_nonce', false ); ?>
[1212] Fix | Delete
<span id="category-ajax-response"></span>
[1213] Fix | Delete
</p>
[1214] Fix | Delete
</div>
[1215] Fix | Delete
</div>
[1216] Fix | Delete
<?php
[1217] Fix | Delete
}
[1218] Fix | Delete
[1219] Fix | Delete
/**
[1220] Fix | Delete
* Displays form fields for changing link target.
[1221] Fix | Delete
*
[1222] Fix | Delete
* @since 2.6.0
[1223] Fix | Delete
*
[1224] Fix | Delete
* @param object $link Current link object.
[1225] Fix | Delete
*/
[1226] Fix | Delete
function link_target_meta_box( $link ) {
[1227] Fix | Delete
[1228] Fix | Delete
?>
[1229] Fix | Delete
<fieldset><legend class="screen-reader-text"><span>
[1230] Fix | Delete
<?php
[1231] Fix | Delete
/* translators: Hidden accessibility text. */
[1232] Fix | Delete
_e( 'Target' );
[1233] Fix | Delete
?>
[1234] Fix | Delete
</span></legend>
[1235] Fix | Delete
<p><label for="link_target_blank" class="selectit">
[1236] Fix | Delete
<input id="link_target_blank" type="radio" name="link_target" value="_blank" <?php echo ( isset( $link->link_target ) && ( '_blank' === $link->link_target ) ? 'checked="checked"' : '' ); ?> />
[1237] Fix | Delete
<?php _e( '<code>_blank</code> &mdash; new window or tab.' ); ?></label></p>
[1238] Fix | Delete
<p><label for="link_target_top" class="selectit">
[1239] Fix | Delete
<input id="link_target_top" type="radio" name="link_target" value="_top" <?php echo ( isset( $link->link_target ) && ( '_top' === $link->link_target ) ? 'checked="checked"' : '' ); ?> />
[1240] Fix | Delete
<?php _e( '<code>_top</code> &mdash; current window or tab, with no frames.' ); ?></label></p>
[1241] Fix | Delete
<p><label for="link_target_none" class="selectit">
[1242] Fix | Delete
<input id="link_target_none" type="radio" name="link_target" value="" <?php echo ( isset( $link->link_target ) && ( '' === $link->link_target ) ? 'checked="checked"' : '' ); ?> />
[1243] Fix | Delete
<?php _e( '<code>_none</code> &mdash; same window or tab.' ); ?></label></p>
[1244] Fix | Delete
</fieldset>
[1245] Fix | Delete
<p><?php _e( 'Choose the target frame for your link.' ); ?></p>
[1246] Fix | Delete
<?php
[1247] Fix | Delete
}
[1248] Fix | Delete
[1249] Fix | Delete
/**
[1250] Fix | Delete
* Displays 'checked' checkboxes attribute for XFN microformat options.
[1251] Fix | Delete
*
[1252] Fix | Delete
* @since 1.0.1
[1253] Fix | Delete
*
[1254] Fix | Delete
* @global object $link Current link object.
[1255] Fix | Delete
*
[1256] Fix | Delete
* @param string $xfn_relationship XFN relationship category. Possible values are:
[1257] Fix | Delete
* 'friendship', 'physical', 'professional',
[1258] Fix | Delete
* 'geographical', 'family', 'romantic', 'identity'.
[1259] Fix | Delete
* @param string $xfn_value Optional. The XFN value to mark as checked
[1260] Fix | Delete
* if it matches the current link's relationship.
[1261] Fix | Delete
* Default empty string.
[1262] Fix | Delete
* @param mixed $deprecated Deprecated. Not used.
[1263] Fix | Delete
*/
[1264] Fix | Delete
function xfn_check( $xfn_relationship, $xfn_value = '', $deprecated = '' ) {
[1265] Fix | Delete
global $link;
[1266] Fix | Delete
[1267] Fix | Delete
if ( ! empty( $deprecated ) ) {
[1268] Fix | Delete
_deprecated_argument( __FUNCTION__, '2.5.0' ); // Never implemented.
[1269] Fix | Delete
}
[1270] Fix | Delete
[1271] Fix | Delete
$link_rel = isset( $link->link_rel ) ? $link->link_rel : ''; // In PHP 5.3: $link_rel = $link->link_rel ?: '';
[1272] Fix | Delete
$link_rels = preg_split( '/\s+/', $link_rel );
[1273] Fix | Delete
[1274] Fix | Delete
// Mark the specified value as checked if it matches the current link's relationship.
[1275] Fix | Delete
if ( '' !== $xfn_value && in_array( $xfn_value, $link_rels, true ) ) {
[1276] Fix | Delete
echo ' checked="checked"';
[1277] Fix | Delete
}
[1278] Fix | Delete
[1279] Fix | Delete
if ( '' === $xfn_value ) {
[1280] Fix | Delete
// Mark the 'none' value as checked if the current link does not match the specified relationship.
[1281] Fix | Delete
if ( 'family' === $xfn_relationship
[1282] Fix | Delete
&& ! array_intersect( $link_rels, array( 'child', 'parent', 'sibling', 'spouse', 'kin' ) )
[1283] Fix | Delete
) {
[1284] Fix | Delete
echo ' checked="checked"';
[1285] Fix | Delete
}
[1286] Fix | Delete
[1287] Fix | Delete
if ( 'friendship' === $xfn_relationship
[1288] Fix | Delete
&& ! array_intersect( $link_rels, array( 'friend', 'acquaintance', 'contact' ) )
[1289] Fix | Delete
) {
[1290] Fix | Delete
echo ' checked="checked"';
[1291] Fix | Delete
}
[1292] Fix | Delete
[1293] Fix | Delete
if ( 'geographical' === $xfn_relationship
[1294] Fix | Delete
&& ! array_intersect( $link_rels, array( 'co-resident', 'neighbor' ) )
[1295] Fix | Delete
) {
[1296] Fix | Delete
echo ' checked="checked"';
[1297] Fix | Delete
}
[1298] Fix | Delete
[1299] Fix | Delete
// Mark the 'me' value as checked if it matches the current link's relationship.
[1300] Fix | Delete
if ( 'identity' === $xfn_relationship
[1301] Fix | Delete
&& in_array( 'me', $link_rels, true )
[1302] Fix | Delete
) {
[1303] Fix | Delete
echo ' checked="checked"';
[1304] Fix | Delete
}
[1305] Fix | Delete
}
[1306] Fix | Delete
}
[1307] Fix | Delete
[1308] Fix | Delete
/**
[1309] Fix | Delete
* Displays XFN form fields.
[1310] Fix | Delete
*
[1311] Fix | Delete
* @since 2.6.0
[1312] Fix | Delete
*
[1313] Fix | Delete
* @param object $link Current link object.
[1314] Fix | Delete
*/
[1315] Fix | Delete
function link_xfn_meta_box( $link ) {
[1316] Fix | Delete
?>
[1317] Fix | Delete
<table class="links-table">
[1318] Fix | Delete
<tr>
[1319] Fix | Delete
<th scope="row"><label for="link_rel"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'rel:' ); ?></label></th>
[1320] Fix | Delete
<td><input type="text" name="link_rel" id="link_rel" value="<?php echo ( isset( $link->link_rel ) ? esc_attr( $link->link_rel ) : '' ); ?>" /></td>
[1321] Fix | Delete
</tr>
[1322] Fix | Delete
<tr>
[1323] Fix | Delete
<th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'identity' ); ?></th>
[1324] Fix | Delete
<td><fieldset>
[1325] Fix | Delete
<legend class="screen-reader-text"><span>
[1326] Fix | Delete
<?php
[1327] Fix | Delete
/* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */
[1328] Fix | Delete
_e( 'identity' );
[1329] Fix | Delete
?>
[1330] Fix | Delete
</span></legend>
[1331] Fix | Delete
<label for="me">
[1332] Fix | Delete
<input type="checkbox" name="identity" value="me" id="me" <?php xfn_check( 'identity', 'me' ); ?> />
[1333] Fix | Delete
<?php _e( 'another web address of mine' ); ?></label>
[1334] Fix | Delete
</fieldset></td>
[1335] Fix | Delete
</tr>
[1336] Fix | Delete
<tr>
[1337] Fix | Delete
<th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'friendship' ); ?></th>
[1338] Fix | Delete
<td><fieldset>
[1339] Fix | Delete
<legend class="screen-reader-text"><span>
[1340] Fix | Delete
<?php
[1341] Fix | Delete
/* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */
[1342] Fix | Delete
_e( 'friendship' );
[1343] Fix | Delete
?>
[1344] Fix | Delete
</span></legend>
[1345] Fix | Delete
<label for="contact">
[1346] Fix | Delete
<input class="valinp" type="radio" name="friendship" value="contact" id="contact" <?php xfn_check( 'friendship', 'contact' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'contact' ); ?>
[1347] Fix | Delete
</label>
[1348] Fix | Delete
<label for="acquaintance">
[1349] Fix | Delete
<input class="valinp" type="radio" name="friendship" value="acquaintance" id="acquaintance" <?php xfn_check( 'friendship', 'acquaintance' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'acquaintance' ); ?>
[1350] Fix | Delete
</label>
[1351] Fix | Delete
<label for="friend">
[1352] Fix | Delete
<input class="valinp" type="radio" name="friendship" value="friend" id="friend" <?php xfn_check( 'friendship', 'friend' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'friend' ); ?>
[1353] Fix | Delete
</label>
[1354] Fix | Delete
<label for="friendship">
[1355] Fix | Delete
<input name="friendship" type="radio" class="valinp" value="" id="friendship" <?php xfn_check( 'friendship' ); ?> />&nbsp;<?php /* translators: xfn (friendship relation): http://gmpg.org/xfn/ */ _ex( 'none', 'Type of relation' ); ?>
[1356] Fix | Delete
</label>
[1357] Fix | Delete
</fieldset></td>
[1358] Fix | Delete
</tr>
[1359] Fix | Delete
<tr>
[1360] Fix | Delete
<th scope="row"> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'physical' ); ?> </th>
[1361] Fix | Delete
<td><fieldset>
[1362] Fix | Delete
<legend class="screen-reader-text"><span>
[1363] Fix | Delete
<?php
[1364] Fix | Delete
/* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */
[1365] Fix | Delete
_e( 'physical' );
[1366] Fix | Delete
?>
[1367] Fix | Delete
</span></legend>
[1368] Fix | Delete
<label for="met">
[1369] Fix | Delete
<input class="valinp" type="checkbox" name="physical" value="met" id="met" <?php xfn_check( 'physical', 'met' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'met' ); ?>
[1370] Fix | Delete
</label>
[1371] Fix | Delete
</fieldset></td>
[1372] Fix | Delete
</tr>
[1373] Fix | Delete
<tr>
[1374] Fix | Delete
<th scope="row"> <?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'professional' ); ?> </th>
[1375] Fix | Delete
<td><fieldset>
[1376] Fix | Delete
<legend class="screen-reader-text"><span>
[1377] Fix | Delete
<?php
[1378] Fix | Delete
/* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */
[1379] Fix | Delete
_e( 'professional' );
[1380] Fix | Delete
?>
[1381] Fix | Delete
</span></legend>
[1382] Fix | Delete
<label for="co-worker">
[1383] Fix | Delete
<input class="valinp" type="checkbox" name="professional" value="co-worker" id="co-worker" <?php xfn_check( 'professional', 'co-worker' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'co-worker' ); ?>
[1384] Fix | Delete
</label>
[1385] Fix | Delete
<label for="colleague">
[1386] Fix | Delete
<input class="valinp" type="checkbox" name="professional" value="colleague" id="colleague" <?php xfn_check( 'professional', 'colleague' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'colleague' ); ?>
[1387] Fix | Delete
</label>
[1388] Fix | Delete
</fieldset></td>
[1389] Fix | Delete
</tr>
[1390] Fix | Delete
<tr>
[1391] Fix | Delete
<th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'geographical' ); ?></th>
[1392] Fix | Delete
<td><fieldset>
[1393] Fix | Delete
<legend class="screen-reader-text"><span>
[1394] Fix | Delete
<?php
[1395] Fix | Delete
/* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */
[1396] Fix | Delete
_e( 'geographical' );
[1397] Fix | Delete
?>
[1398] Fix | Delete
</span></legend>
[1399] Fix | Delete
<label for="co-resident">
[1400] Fix | Delete
<input class="valinp" type="radio" name="geographical" value="co-resident" id="co-resident" <?php xfn_check( 'geographical', 'co-resident' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'co-resident' ); ?>
[1401] Fix | Delete
</label>
[1402] Fix | Delete
<label for="neighbor">
[1403] Fix | Delete
<input class="valinp" type="radio" name="geographical" value="neighbor" id="neighbor" <?php xfn_check( 'geographical', 'neighbor' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'neighbor' ); ?>
[1404] Fix | Delete
</label>
[1405] Fix | Delete
<label for="geographical">
[1406] Fix | Delete
<input class="valinp" type="radio" name="geographical" value="" id="geographical" <?php xfn_check( 'geographical' ); ?> />&nbsp;<?php /* translators: xfn (geographical relation): http://gmpg.org/xfn/ */ _ex( 'none', 'Type of relation' ); ?>
[1407] Fix | Delete
</label>
[1408] Fix | Delete
</fieldset></td>
[1409] Fix | Delete
</tr>
[1410] Fix | Delete
<tr>
[1411] Fix | Delete
<th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'family' ); ?></th>
[1412] Fix | Delete
<td><fieldset>
[1413] Fix | Delete
<legend class="screen-reader-text"><span>
[1414] Fix | Delete
<?php
[1415] Fix | Delete
/* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */
[1416] Fix | Delete
_e( 'family' );
[1417] Fix | Delete
?>
[1418] Fix | Delete
</span></legend>
[1419] Fix | Delete
<label for="child">
[1420] Fix | Delete
<input class="valinp" type="radio" name="family" value="child" id="child" <?php xfn_check( 'family', 'child' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'child' ); ?>
[1421] Fix | Delete
</label>
[1422] Fix | Delete
<label for="kin">
[1423] Fix | Delete
<input class="valinp" type="radio" name="family" value="kin" id="kin" <?php xfn_check( 'family', 'kin' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'kin' ); ?>
[1424] Fix | Delete
</label>
[1425] Fix | Delete
<label for="parent">
[1426] Fix | Delete
<input class="valinp" type="radio" name="family" value="parent" id="parent" <?php xfn_check( 'family', 'parent' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'parent' ); ?>
[1427] Fix | Delete
</label>
[1428] Fix | Delete
<label for="sibling">
[1429] Fix | Delete
<input class="valinp" type="radio" name="family" value="sibling" id="sibling" <?php xfn_check( 'family', 'sibling' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'sibling' ); ?>
[1430] Fix | Delete
</label>
[1431] Fix | Delete
<label for="spouse">
[1432] Fix | Delete
<input class="valinp" type="radio" name="family" value="spouse" id="spouse" <?php xfn_check( 'family', 'spouse' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'spouse' ); ?>
[1433] Fix | Delete
</label>
[1434] Fix | Delete
<label for="family">
[1435] Fix | Delete
<input class="valinp" type="radio" name="family" value="" id="family" <?php xfn_check( 'family' ); ?> />&nbsp;<?php /* translators: xfn (family relation): http://gmpg.org/xfn/ */ _ex( 'none', 'Type of relation' ); ?>
[1436] Fix | Delete
</label>
[1437] Fix | Delete
</fieldset></td>
[1438] Fix | Delete
</tr>
[1439] Fix | Delete
<tr>
[1440] Fix | Delete
<th scope="row"><?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'romantic' ); ?></th>
[1441] Fix | Delete
<td><fieldset>
[1442] Fix | Delete
<legend class="screen-reader-text"><span>
[1443] Fix | Delete
<?php
[1444] Fix | Delete
/* translators: Hidden accessibility text. xfn: https://gmpg.org/xfn/ */
[1445] Fix | Delete
_e( 'romantic' );
[1446] Fix | Delete
?>
[1447] Fix | Delete
</span></legend>
[1448] Fix | Delete
<label for="muse">
[1449] Fix | Delete
<input class="valinp" type="checkbox" name="romantic" value="muse" id="muse" <?php xfn_check( 'romantic', 'muse' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'muse' ); ?>
[1450] Fix | Delete
</label>
[1451] Fix | Delete
<label for="crush">
[1452] Fix | Delete
<input class="valinp" type="checkbox" name="romantic" value="crush" id="crush" <?php xfn_check( 'romantic', 'crush' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'crush' ); ?>
[1453] Fix | Delete
</label>
[1454] Fix | Delete
<label for="date">
[1455] Fix | Delete
<input class="valinp" type="checkbox" name="romantic" value="date" id="date" <?php xfn_check( 'romantic', 'date' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'date' ); ?>
[1456] Fix | Delete
</label>
[1457] Fix | Delete
<label for="romantic">
[1458] Fix | Delete
<input class="valinp" type="checkbox" name="romantic" value="sweetheart" id="romantic" <?php xfn_check( 'romantic', 'sweetheart' ); ?> />&nbsp;<?php /* translators: xfn: https://gmpg.org/xfn/ */ _e( 'sweetheart' ); ?>
[1459] Fix | Delete
</label>
[1460] Fix | Delete
</fieldset></td>
[1461] Fix | Delete
</tr>
[1462] Fix | Delete
[1463] Fix | Delete
</table>
[1464] Fix | Delete
<p><?php _e( 'If the link is to a person, you can specify your relationship with them using the above form. If you would like to learn more about the idea check out <a href="https://gmpg.org/xfn/">XFN</a>.' ); ?></p>
[1465] Fix | Delete
<?php
[1466] Fix | Delete
}
[1467] Fix | Delete
[1468] Fix | Delete
/**
[1469] Fix | Delete
* Displays advanced link options form fields.
[1470] Fix | Delete
*
[1471] Fix | Delete
* @since 2.6.0
[1472] Fix | Delete
*
[1473] Fix | Delete
* @param object $link Current link object.
[1474] Fix | Delete
*/
[1475] Fix | Delete
function link_advanced_meta_box( $link ) {
[1476] Fix | Delete
?>
[1477] Fix | Delete
<table class="links-table" cellpadding="0">
[1478] Fix | Delete
<tr>
[1479] Fix | Delete
<th scope="row"><label for="link_image"><?php _e( 'Image Address' ); ?></label></th>
[1480] Fix | Delete
<td><input type="text" name="link_image" class="code" id="link_image" maxlength="255" value="<?php echo ( isset( $link->link_image ) ? esc_attr( $link->link_image ) : '' ); ?>" /></td>
[1481] Fix | Delete
</tr>
[1482] Fix | Delete
<tr>
[1483] Fix | Delete
<th scope="row"><label for="rss_uri"><?php _e( 'RSS Address' ); ?></label></th>
[1484] Fix | Delete
<td><input name="link_rss" class="code" type="text" id="rss_uri" maxlength="255" value="<?php echo ( isset( $link->link_rss ) ? esc_attr( $link->link_rss ) : '' ); ?>" /></td>
[1485] Fix | Delete
</tr>
[1486] Fix | Delete
<tr>
[1487] Fix | Delete
<th scope="row"><label for="link_notes"><?php _e( 'Notes' ); ?></label></th>
[1488] Fix | Delete
<td><textarea name="link_notes" id="link_notes" rows="10"><?php echo ( isset( $link->link_notes ) ? $link->link_notes : '' ); // textarea_escaped ?></textarea></td>
[1489] Fix | Delete
</tr>
[1490] Fix | Delete
<tr>
[1491] Fix | Delete
<th scope="row"><label for="link_rating"><?php _e( 'Rating' ); ?></label></th>
[1492] Fix | Delete
<td><select name="link_rating" id="link_rating" size="1">
[1493] Fix | Delete
<?php
[1494] Fix | Delete
for ( $rating = 0; $rating <= 10; $rating++ ) {
[1495] Fix | Delete
echo '<option value="' . $rating . '"';
[1496] Fix | Delete
if ( isset( $link->link_rating ) && $link->link_rating === $rating ) {
[1497] Fix | Delete
echo ' selected="selected"';
[1498] Fix | Delete
}
[1499] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function