Plugin Directory

Changeset 3064210


Ignore:
Timestamp:
04/03/2024 11:15:51 PM (2 years ago)
Author:
jwz
Message:

Version 1.7

Location:
herp-derp
Files:
2 edited
4 copied

Legend:

Unmodified
Added
Removed
  • herp-derp/tags/1.7/herpderp.php

    r2782906 r3064210  
    33Plugin Name: Herp Derp
    44Plugin URI: https://www.jwz.org/herpderp/
    5 Version: 1.6
     5Version: 1.7
    66Description: Adds a checkbox to replace the text of your comments with "Herp Derp".
    77Author: Jamie Zawinski
     
    99*/
    1010
    11 /* Copyright © 2012-2022 Jamie Zawinski <jwz@jwz.org>
     11/* Copyright © 2012-2023 Jamie Zawinski <jwz@jwz.org>
    1212
    1313   Permission to use, copy, modify, distribute, and sell this software and its
     
    3434function herpderp_init() { 
    3535
    36   if (!is_singular() || !get_comments_number()) return;
     36  if (!is_singular() || is_feed() || !get_comments_number()) return;
    3737
    3838  // Pass the default value of the prefs checkbox down into JS.
     
    5454add_action ('wp_head', 'herpderp_head');
    5555function herpderp_head() {
    56   if (!is_singular() || !get_comments_number()) return;
     56  if (!is_singular() || is_feed() || !get_comments_number()) return;
    5757?>
    5858<STYLE TYPE="text/css">
     
    6767add_filter ('comment_text', 'herpderp_comment_text', 40);  // after wpautop
    6868function herpderp_comment_text($text) {
    69   if (!is_singular() || !get_comments_number()) return $text;
     69  if (!is_singular() || is_feed() || !get_comments_number())
     70    return $text;
    7071  return "<span class='herpc'>$text</span>";
    7172}
  • herp-derp/tags/1.7/readme.txt

    r2782906 r3064210  
    44Tags: herp, derp
    55Requires at least: 2.7
    6 Tested up to: 6.0.2
    7 Stable tag: 1.6
     6Tested up to: 6.5
     7Stable tag: 1.7
    88
    99This plugin herps all the derps.
     
    5454* Moved the "Herp by default" checkbox to the "Settings / Discussion" page.
    5555
     56= 1.7 =
     57* Omit unnecessary derpery on feed pages.
     58
  • herp-derp/trunk/herpderp.php

    r2782906 r3064210  
    33Plugin Name: Herp Derp
    44Plugin URI: https://www.jwz.org/herpderp/
    5 Version: 1.6
     5Version: 1.7
    66Description: Adds a checkbox to replace the text of your comments with "Herp Derp".
    77Author: Jamie Zawinski
     
    99*/
    1010
    11 /* Copyright © 2012-2022 Jamie Zawinski <jwz@jwz.org>
     11/* Copyright © 2012-2023 Jamie Zawinski <jwz@jwz.org>
    1212
    1313   Permission to use, copy, modify, distribute, and sell this software and its
     
    3434function herpderp_init() { 
    3535
    36   if (!is_singular() || !get_comments_number()) return;
     36  if (!is_singular() || is_feed() || !get_comments_number()) return;
    3737
    3838  // Pass the default value of the prefs checkbox down into JS.
     
    5454add_action ('wp_head', 'herpderp_head');
    5555function herpderp_head() {
    56   if (!is_singular() || !get_comments_number()) return;
     56  if (!is_singular() || is_feed() || !get_comments_number()) return;
    5757?>
    5858<STYLE TYPE="text/css">
     
    6767add_filter ('comment_text', 'herpderp_comment_text', 40);  // after wpautop
    6868function herpderp_comment_text($text) {
    69   if (!is_singular() || !get_comments_number()) return $text;
     69  if (!is_singular() || is_feed() || !get_comments_number())
     70    return $text;
    7071  return "<span class='herpc'>$text</span>";
    7172}
  • herp-derp/trunk/readme.txt

    r2782906 r3064210  
    44Tags: herp, derp
    55Requires at least: 2.7
    6 Tested up to: 6.0.2
    7 Stable tag: 1.6
     6Tested up to: 6.5
     7Stable tag: 1.7
    88
    99This plugin herps all the derps.
     
    5454* Moved the "Herp by default" checkbox to the "Settings / Discussion" page.
    5555
     56= 1.7 =
     57* Omit unnecessary derpery on feed pages.
     58
Note: See TracChangeset for help on using the changeset viewer.