dev_n
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Networking WordPress
In reply to: Media not working – WindowsNot 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
In reply to: Help with add_filter for wp_filter_comment()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
In reply to: Help with add_filter for wp_filter_comment()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)