Plugin Directory

Changeset 349850


Ignore:
Timestamp:
02/23/2011 04:32:31 PM (15 years ago)
Author:
mcinvale
Message:

added option to remove passive localization.

Location:
header-cleanup/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • header-cleanup/trunk/headercleanup.php

    r345439 r349850  
    44Plugin URI: http://binarym.com/2010/wordpress-head-cleanup-plugin/
    55Description: Remove extraneous head tags from WordPress.
    6 Version: 0.0.4
     6Version: 0.0.5
    77Author: Matt McInvale - BinaryM Inc.
    88Author URI: http://binarym.com/
    99
    1010    To Do: 
    11         Get sushi for lunch
     11        Get tacos for lunch
    1212*/
    1313
    14 if (!is_admin()) add_action('init', 'removeJankFromHeader');
     14if (!is_admin()) add_action('init', 'removeJankFromHeader', 99999);
    1515
    1616function removeJankFromHeader() {
     
    4343        add_filter('post_comments_feed_link','headerCleanupKillCommentsRSS');
    4444    }
     45
     46    if ($binaryheadercleanup['passivejs']) {
     47        wp_deregister_script('l10n');
     48    }
     49
     50
    4551
    4652}
     
    8389
    8490        <table class="form-table">
     91            <tr valign="top">
     92                <th scope="row">Passive Localization JavaScript</th>
     93                <td><input type="checkbox" name="binaryheadercleanup[passivejs]" value="1" <?php if ($binaryheadercleanup['passivejs']) echo 'checked="checked"'; ?>/></td>
    8594            <tr valign="top">
    8695                <th scope="row">RSD Link</th>
  • header-cleanup/trunk/readme.txt

    r345439 r349850  
    33Tags: html, clean, puppies
    44Requires at least: 2.7
    5 Tested up to: 3.0.5
     5Tested up to: 3.1
    66Stable tag: trunk
    77
Note: See TracChangeset for help on using the changeset viewer.