Plugin Directory

Changeset 2230779


Ignore:
Timestamp:
01/21/2020 08:42:18 AM (6 years ago)
Author:
Daschmi
Message:
  • Trunk korrigiert
Location:
emailscrambler
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • emailscrambler/tags/1.2/classes/action.class.php

    r2230759 r2230779  
    2323        } // public static function wp_head() : void
    2424   
    25         public static function wp_foot() : void {
     25        public static function wp_footer() : void {
    2626       
    2727            ob_end_flush();
  • emailscrambler/tags/1.2/emailscrambler.php

    r2230759 r2230779  
    99     * Plugin URI: https://daschmi.de/wpes
    1010     * Description: A lightweight plugin to protect email addresses from email-harvesting
    11      * Version: 1.1
     11     * Version: 1.2
    1212     * Author: Daniel Schmitzer
    1313     * Author URI: https://daschmi.de/
     
    2020    require_once dirname(__FILE__).'/classes/action.class.php';
    2121
    22     foreach (array('the_content', 'the_excerpt', 'widget_text', 'comment_text', 'comment_excerpt') as $filter) {
    23 
    24         add_filter($filter, array('\wpes\wpes', 'filter'), 1000);
    25 
    26     }
    27 
     22    add_action('wp_head', ['\wpes\action', 'wp_head']);
     23    add_action('wp_footer', ['\wpes\action', 'wp_footer']);
     24   
    2825    add_action('wp_enqueue_scripts', array('\wpes\action', 'wp_enqueue_scripts'));
  • emailscrambler/trunk/classes/action.class.php

    r2230759 r2230779  
    2323        } // public static function wp_head() : void
    2424   
    25         public static function wp_foot() : void {
     25        public static function wp_footer() : void {
    2626       
    2727            ob_end_flush();
  • emailscrambler/trunk/emailscrambler.php

    r2230760 r2230779  
    2020    require_once dirname(__FILE__).'/classes/action.class.php';
    2121
    22     foreach (array('the_content', 'the_excerpt', 'widget_text', 'comment_text', 'comment_excerpt') as $filter) {
    23 
    24         add_filter($filter, array('\wpes\wpes', 'filter'), 1000);
    25 
    26     }
    27 
     22    add_action('wp_head', ['\wpes\action', 'wp_head']);
     23    add_action('wp_footer', ['\wpes\action', 'wp_footer']);
     24   
    2825    add_action('wp_enqueue_scripts', array('\wpes\action', 'wp_enqueue_scripts'));
Note: See TracChangeset for help on using the changeset viewer.