WordPress at a glance
function is not described

options_discussion_add_js() WP 4.2.0

Output JavaScript to toggle display of additional settings if avatars are disabled.

No Hooks.

Return

Nothing (null).

Usage

options_discussion_add_js();

Code of options discussion add js: wp-admin/includes/options.php VER 5.0.3

<?php
function options_discussion_add_js() {
?>
	<script>
	(function($){
		var parent = $( '#show_avatars' ),
			children = $( '.avatar-settings' );
		parent.change(function(){
			children.toggleClass( 'hide-if-js', ! this.checked );
		});
	})(jQuery);
	</script>
<?php
}