• Resolved janubande007

    (@janubande007)


    BUG: When HTML is present in the Replacement Text with Mixed case Text, Case sensitive text replacement is ALWAYS happening even though it is NOT Checked.

    Page content contains following text:
    <strong>bold text into link</strong>

    Text replacement expansion definition is as below:
    <strong>Bold Text into Link</strong> => <a href='https://example.com/example-page/'>Bold Text into Link</a>

    Case sensitive text replacement? is Unckecked.

    Result is that it does not work unless the Text replacement expansion definition is changed as below so that the case matches.

    <strong>bold text into link</strong> => <a href='https://example.com/example-page/'>Bold Text into Link</a>

    This is a BUG because Case sensitive text replacement? is Unckecked.

    Any ETA on a Fix?

    https://www.ads-software.com/plugins/text-replace/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Since Scott hasn’t fixed this yet, you can do it yourself by removing ” === true” from the end of line 224 of text-replace.php. You can find that file in wp-content/plugins/text-replace

    Line 224 should look like this:
    $case_sensitive = apply_filters( 'c2c_text_replace_case_sensitive', $options['case_sensitive'] );

    Thread Starter janubande007

    (@janubande007)

    Thanks for providing the Fix.

    However, I hope the author of this plugin picks it up and fixes it so that everyone can get it via plugin update. Code change won’t work for me because my site installation has a ZERO code change policy.

    Plugin Author Scott Reilly

    (@coffee2code)

    WordPress & Plugin Developer

    @janubande007: Give v3.5.1 a try. It should have the fix for this issue. Thanks for reporting it! And thanks to @monfresh for putting forth a fix!

    Thread Starter janubande007

    (@janubande007)

    Hi Scott. I did test it out with v3.5.1 and this bug has been fixed. Thanks.

    But I did find another bug while testing this, so please see my next post.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘BUG: Case sensitive text replacement is happening even when it is NOT Checked’ is closed to new replies.