Show Hide Author - Version 1.3

Version Description

Download this release

Release Info

Developer mspyratos
Plugin Icon 128x128 Show Hide Author
Version 1.3
Comparing to
See all releases

Code changes from version 1.2 to 1.3

Files changed (2) hide show
  1. readme.txt +2 -1
  2. show_hide_author.php +2 -3
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=EP9SL
4
  Tags: show author, hide author, remove author, author name
5
  Requires at least: 3.0.1
6
  Tested up to: 3.5
7
- Stable tag: 1.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -28,6 +28,7 @@ You also can choose where to show the name.
28
  * Twenty Twelve by Wordpress
29
  * Theme Revenge on themerevenge.com
30
  * Magnificent by ElegantThemes
 
31
 
32
  = Note =
33
 
4
  Tags: show author, hide author, remove author, author name
5
  Requires at least: 3.0.1
6
  Tested up to: 3.5
7
+ Stable tag: 1.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
28
  * Twenty Twelve by Wordpress
29
  * Theme Revenge on themerevenge.com
30
  * Magnificent by ElegantThemes
31
+ * Portfolio Press by Devin
32
 
33
  = Note =
34
 
show_hide_author.php CHANGED
@@ -2,7 +2,7 @@
2
  /*
3
  Plugin Name: Show Hide Author
4
  Description: Choose whether to show or hide the author name.
5
- Version: 1.2
6
  Author: Michael Spyratos
7
  Author URI: http://mspyratos.com/
8
  License: GPL2
@@ -333,7 +333,6 @@ function remove_the_by() {
333
  <?php if(isset($options_by['option_by_class']) && $options_by['option_by_class'] != '') : ?>
334
  // Custom Classes and Regexs
335
  var classes = [<?php echo $custom_classes; ?>];
336
- alert(<?php echo $custom_regex_string; ?>);
337
  <?php if(isset($custom_regex_string) && $custom_regex_string != '') : ?>
338
  var regex = <?php echo $custom_regex_string; ?>;
339
  <?php else : ?>
@@ -365,7 +364,7 @@ function remove_the_by() {
365
  break;
366
  default:
367
  var classes = ['entry-meta'];
368
- var regex = / by <a(.*?)\/a>|<span class="sep"> by <\/span>| <span class="meta-sep">by<\/span>/;
369
  }
370
  <?php endif; ?>
371
  if (typeof classes[0] !== 'undefined' && classes[0] !== null) {
2
  /*
3
  Plugin Name: Show Hide Author
4
  Description: Choose whether to show or hide the author name.
5
+ Version: 1.3
6
  Author: Michael Spyratos
7
  Author URI: http://mspyratos.com/
8
  License: GPL2
333
  <?php if(isset($options_by['option_by_class']) && $options_by['option_by_class'] != '') : ?>
334
  // Custom Classes and Regexs
335
  var classes = [<?php echo $custom_classes; ?>];
 
336
  <?php if(isset($custom_regex_string) && $custom_regex_string != '') : ?>
337
  var regex = <?php echo $custom_regex_string; ?>;
338
  <?php else : ?>
364
  break;
365
  default:
366
  var classes = ['entry-meta'];
367
+ var regex = / by <a(.*?)\/a>|<span class="sep"> by <\/span>| <span class="meta-sep">by<\/span>| <span class="meta-sep"> by <\/span>/;
368
  }
369
  <?php endif; ?>
370
  if (typeof classes[0] !== 'undefined' && classes[0] !== null) {