wp-admin/includes/options.php:15Output JavaScript to toggle display of additional settings if avatars are disabled.
function options_discussion_add_js() { ?> <script> (function($){ var parent = $( '#show_avatars' ), children = $( '.avatar-settings' ); parent.on( 'change', function(){ children.toggleClass( 'hide-if-js', ! this.checked ); }); })(jQuery); </script> <?php}Introduced in 4.2.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-admin/includes/options.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.