Plugin Directory

Changeset 945699


Ignore:
Timestamp:
07/09/2014 04:08:23 PM (12 years ago)
Author:
davidlyness
Message:

Remove unnecessary variable declaration that could cause PHP to generate a notice to the user.

Location:
html-cleanup/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • html-cleanup/trunk/html-cleanup.php

    r727596 r945699  
    44Plugin URI: https://davidlyness.com/plugins/html-cleanup
    55Description: A plugin to replace or remove lines of HTML generated by Wordpress and other plugins based on predefined regular expressions.
    6 Version: 1.2.1
     6Version: 1.2.2
    77Author: David Lyness
    88Author URI: https://davidlyness.com
     
    1515// Do the actual filtering by performing regex search & replace operations
    1616function html_cleanup_callback($buffer) {
    17     $cleanupOverride = $_GET['cleanupoverride'];
    1817    if ((!is_admin()) && ((!isset($_GET['cleanupoverride'])) || ($_GET['cleanupoverride'] !== get_option('cleanup_override'))) && (get_option('blacklisted_patterns'))) {
    1918        if (get_option('blacklist_replace_flag')) {
  • html-cleanup/trunk/readme.txt

    r894716 r945699  
    4747== Changelog ==
    4848
     49= 1.2.2 =
     50* Ensure PHP doesn't generate a notice regarding an undefined index.
     51
    4952= 1.2.1 =
    5053* Compatibility with versions of PHP prior to v5.3.
     
    6467== Upgrade Notice ==
    6568
    66 = 1.2.1 =
    67 HTML Cleanup is now compatible with versions of PHP prior to v5.3.
     69= 1.2.2 =
     70HTML Cleanup now no longer causes PHP to generate a notice regarding an undefined index.
Note: See TracChangeset for help on using the changeset viewer.