Plugin Directory

Changeset 963357


Ignore:
Timestamp:
08/10/2014 06:06:22 PM (11 years ago)
Author:
takien
Message:

Update to 0.4

Location:
word-replacer/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • word-replacer/trunk/readme.txt

    r758195 r963357  
    44Tags: replacer, post, comment, page, replace, censor, bbcode, filter, bbpress
    55Requires at least: 3.1
    6 Tested up to: 3.6
    7 Stable tag: 0.3.3
     6Tested up to: 3.9.2
     7Stable tag: 0.4
    88License: GPLv2 or later
    99
     
    3535
    3636== Changelog ==
     37
     38= 0.4 =
     39* Fixed: Suppress error `PHP Warning:  Missing argument 2 for WordReplacer::word_replacer_comment()` if comment disabled.
    3740
    3841= 0.3.3 =
  • word-replacer/trunk/word-replacer.php

    r758195 r963357  
    55Description: Replace word in post, page, title or comment and bbPress.
    66Author: Takien
    7 Version: 0.3.3
     7Version: 0.4
    88Author URI: http://takien.com/
    99*/
     
    3131   
    3232    var $name       = 'Word Replacer';
    33     var $version    = '0.3.3';
     33    var $version    = '0.4';
    3434    var $table_name = 'word_replacer';
    3535    var $base_name  = 'wordreplacer';
     
    357357    }
    358358   
    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            }
    362364        }
    363365        return $content;
Note: See TracChangeset for help on using the changeset viewer.