Plugin Directory

Changeset 680952


Ignore:
Timestamp:
03/13/2013 02:55:01 AM (13 years ago)
Author:
mspyratos
Message:

IE8 and below support

Location:
show-hide-author/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • show-hide-author/trunk/readme.txt

    r677018 r680952  
    55Requires at least: 3.0.1
    66Tested up to: 3.5
    7 Stable tag: 2.1
     7Stable tag: 2.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    112112== Changelog ==
    113113
     114= 2.2 =
     115* Support for IE8 and below.
     116
     117= 2.1 =
     118* Added more themes support.
     119
    114120= 2.0 =
    115121* Fixed a problem when multiple Regular Expressions were used.
  • show-hide-author/trunk/show_hide_author.php

    r677018 r680952  
    33Plugin Name: Show Hide Author
    44Description: Choose whether to show or hide the author name.
    5 Version: 2.1
     5Version: 2.2
    66Author: Michael Spyratos
    77Author URI: http://mspyratos.com/
     
    369369                        var regex_array = regex.split(";");
    370370                        for(var k = 0; k < regex_array.length; k++) {
    371                              if (elements[j].innerHTML.match(new RegExp(regex_array[k]))) {
    372                                  var replaced_txt = elements[j].innerHTML.replace(new RegExp(regex_array[k]), '');
     371                             if (elements[j].innerHTML.match(new RegExp(regex_array[k], "i"))) {
     372                                 var replaced_txt = elements[j].innerHTML.replace(new RegExp(regex_array[k], "i"), '');
    373373                                 elements[j].innerHTML = replaced_txt;
    374374                             }
Note: See TracChangeset for help on using the changeset viewer.