Changeset 963357
- Timestamp:
- 08/10/2014 06:06:22 PM (11 years ago)
- Location:
- word-replacer/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
word-replacer/trunk/readme.txt
r758195 r963357 4 4 Tags: replacer, post, comment, page, replace, censor, bbcode, filter, bbpress 5 5 Requires at least: 3.1 6 Tested up to: 3. 67 Stable tag: 0. 3.36 Tested up to: 3.9.2 7 Stable tag: 0.4 8 8 License: GPLv2 or later 9 9 … … 35 35 36 36 == Changelog == 37 38 = 0.4 = 39 * Fixed: Suppress error `PHP Warning: Missing argument 2 for WordReplacer::word_replacer_comment()` if comment disabled. 37 40 38 41 = 0.3.3 = -
word-replacer/trunk/word-replacer.php
r758195 r963357 5 5 Description: Replace word in post, page, title or comment and bbPress. 6 6 Author: Takien 7 Version: 0. 3.37 Version: 0.4 8 8 Author URI: http://takien.com/ 9 9 */ … … 31 31 32 32 var $name = 'Word Replacer'; 33 var $version = '0. 3.3';33 var $version = '0.4'; 34 34 var $table_name = 'word_replacer'; 35 35 var $base_name = 'wordreplacer'; … … 357 357 } 358 358 359 function word_replacer_comment($content,$comment) { 360 if($comment->comment_approved == '1') { 361 $content = $this->replace_replace( $content, 'comment' ); 359 function word_replacer_comment($content,$comment='') { 360 if($comment) { 361 if($comment->comment_approved == '1') { 362 $content = $this->replace_replace( $content, 'comment' ); 363 } 362 364 } 363 365 return $content;
Note: See TracChangeset
for help on using the changeset viewer.