Title: dev_n's Replies | WordPress.org

---

# dev_n

  [  ](https://wordpress.org/support/users/dev_n/)

 *   [Profile](https://wordpress.org/support/users/dev_n/)
 *   [Topics Started](https://wordpress.org/support/users/dev_n/topics/)
 *   [Replies Created](https://wordpress.org/support/users/dev_n/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/dev_n/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/dev_n/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/dev_n/engagements/)
 *   [Favorites](https://wordpress.org/support/users/dev_n/favorites/)

 Search replies:

## Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)

 *   Forum: [Networking WordPress](https://wordpress.org/support/forum/multisite/)
   
   In reply to: [Media not working – Windows](https://wordpress.org/support/topic/media-not-working-windows/)
 *  [dev_n](https://wordpress.org/support/users/dev_n/)
 * (@dev_n)
 * [15 years, 2 months ago](https://wordpress.org/support/topic/media-not-working-windows/#post-1594952)
 * Not sure if this will help with others having the same problem–
 * I was experiencing the same symptoms with this:
 *     ```
       <rule name="wordpress" enabled="true" patternSyntax="Wildcard">
                           <match url="*" />
                           <conditions logicalGrouping="MatchAll" trackAllCaptures="false">
                               <add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
                               <add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
                           </conditions>
                           <action type="Rewrite" url="index.php" />
                       </rule>
                       <rule name="WordPress Rule 1" stopProcessing="true">
                           <match url="^index\.php$" ignoreCase="false" />
                           <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                           <action type="None" />
                       </rule>
                       <rule name="WordPress Rule 2" enabled="true" stopProcessing="true">
                           <match url="^files/(.+)" ignoreCase="false" />
                           <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                           <action type="Rewrite" url="wp-includes/ms-files.php?file={R:1}" appendQueryString="false" />
                       </rule>
                       <rule name="WordPress Rule 3" stopProcessing="true">
                           <match url="^" ignoreCase="false" />
                           <conditions logicalGrouping="MatchAny" trackAllCaptures="false">
                               <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" />
                               <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" />
                           </conditions>
                           <action type="None" />
                       </rule>
                       <rule name="WordPress Rule 4" stopProcessing="true">
                           <match url="." ignoreCase="false" />
                           <conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
                           <action type="Rewrite" url="index.php" />
                       </rule>
       ```
   
 * Images displayed only after disabling the rule named “wordpress” (it was redundant
   in my case).
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Help with add_filter for wp_filter_comment()](https://wordpress.org/support/topic/help-with-add_filter-for-wp_filter_comment/)
 *  [dev_n](https://wordpress.org/support/users/dev_n/)
 * (@dev_n)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/help-with-add_filter-for-wp_filter_comment/#post-677671)
 * Yes, my mistake. That’s what I get for trying to think too fast. Here’s something
   that should work for him:
 *     ```
       function mod_filter_comment($comment) {
       $comment = 'HIA';
       return $comment;
       }
       add_filter('pre_comment_content', 'mod_filter_comment');
       ```
   
 * Also I noticed the age, but I know people look around these dunes a lot looking
   for answers – so replied regardless…
 * –Thanks Otto
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [Help with add_filter for wp_filter_comment()](https://wordpress.org/support/topic/help-with-add_filter-for-wp_filter_comment/)
 *  [dev_n](https://wordpress.org/support/users/dev_n/)
 * (@dev_n)
 * [17 years, 11 months ago](https://wordpress.org/support/topic/help-with-add_filter-for-wp_filter_comment/#post-677669)
 * You forgot the global variable.
 *     ```
       function mod_filter_comment($str) {
       global $commentdata;
   
       // do something with the comment_content here ($str)
   
       $commentdata['comment_content'] = $str; // then make it stick...
       }
   
       add_filter('comment_save_pre', 'mod_filter_comment');
       ```
   

Viewing 3 replies - 1 through 3 (of 3 total)