• I’ve been troubleshooting problems with the visual media editor for about a month now. I finally found the problem. Below is the code I have in a plugin in the mu-plugins folder to modify the comments form for all the sites on my multinetwork install.

    <?php
    /*
    Plugin Name:  Comment Form Mod Plugin
    Description:  Plugin written to remove Website field and HTML tags field
    */
    
    function remove_extraneous_fields() {
    	add_filter('comment_form_defaults','mynetworkmod_comments_form_defaults');
    	add_filter('comment_form_default_fields', 'remove_comment_url_field');
    }
    add_action('after_setup_theme', 'remove_extraneous_fields');
    function mynetworkmod_comments_form_defaults($default) {
    	unset($default['comment_notes_after']);
    	return $default;
    }
    function remove_comment_url_field($fields) {
    	unset($fields['url']);
    	return $fields;
    }
    ?>

    This plugin works at doing what I want, but it also destroys the ability to crop and rotate photos. Any thoughts?

The topic ‘Comment Form Modification’ is closed to new replies.