HEX
Server: Apache/2.4.63 (Unix)
System: Linux free32.beget.ru 5.10.239-0-beget-acl-test #1 SMP Fri Jul 11 14:08:01 UTC 2025 x86_64
User: n96454p5 (3415)
PHP: 8.3.20
Disabled: NONE
Upload Files
File: /home/n/n96454p5/n96454p5.beget.tech/public_html/wp-admin/js/xfn.js
/**
 * Generates the XHTML Friends Network 'rel' string from the inputs.
 *
 * @deprecated 3.5.0
 * @output wp-admin/js/xfn.js
 */
jQuery( function( $ ) {
	$( '#link_rel' ).prop( 'readonly', true );
	$( '#linkxfndiv input' ).on( 'click keyup', function() {
		var isMe = $( '#me' ).is( ':checked' ), inputs = '';
		$( 'input.valinp' ).each( function() {
			if ( isMe ) {
				$( this ).prop( 'disabled', true ).parent().addClass( 'disabled' );
			} else {
				$( this ).removeAttr( 'disabled' ).parent().removeClass( 'disabled' );
				if ( $( this ).is( ':checked' ) && $( this ).val() !== '') {
					inputs += $( this ).val() + ' ';
				}
			}
		});
		$( '#link_rel' ).val( ( isMe ) ? 'me' : inputs.substr( 0,inputs.length - 1 ) );
	});
});