WordPress.org

Plugin Directory

Changeset 605970


Ignore:
Timestamp:
09/30/12 02:14:51 (19 months ago)
Author:
Ipstenu
Message:

Typos will be the death of me. Reverted to 2.2 to fix 2.3 and make 2.3.1

Location:
disabler/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • disabler/trunk/disabler.php

    r605326 r605970  
    44Plugin URI: http://halfelf.org/plugins/disabler/ 
    55Description: Instead of installing a million plugins to turn off features you don't want, why not use ONE plugin? 
    6 Version: 2.3 
     6Version: 2.3.1 
    77Author: Mika Epstein 
    88Author URI: http://ipstenu.org/ 
    99 
    10 Copyright 2010-11 Mika Epstein (email: ipstenu@ipstenu.org) 
     10Copyright 2010-12 Mika Epstein (email: ipstenu@ipstenu.org) 
    1111 
    1212    This file is part of Disabler, a plugin for WordPress. 
     
    3737} 
    3838 
    39 // Hooks 
    40 register_activation_hook( __FILE__, 'disabler_activate' ); 
    4139 
    4240/* FRONT END SETTINGS */ 
     
    8381    add_action('do_feed_atom', 'disabler_kill_rss', 1); 
    8482    } 
    85  
    8683/* XML RPC */ 
    8784if (get_option('disabler_xmlrpc') != '0' ) { 
    8885    add_filter( 'xmlrpc_enabled', '__return_false' ); 
    8986    } 
    90  
    9187/* Post Auto Saves */ 
    9288if (get_option('disabler_autosave') != '0' ) { 
     
    116112    add_filter('http_headers_useragent', 'disabler_remove_url'); 
    117113    } 
     114     
     115// Create the options when turned on 
     116 
     117    function disabler_activate() { 
     118        add_option('disabler_smartquotes', '0'); 
     119        add_option('disabler_capitalp', '0'); 
     120        add_option('disabler_autop', '0'); 
     121 
     122        add_option('disabler_selfping', '0'); 
     123        add_option('disabler_norss', '0'); 
     124        add_option('disabler_xmlrpc', '0'); 
     125        add_option('disabler_revisions', '0'); 
     126        add_option('disabler_autosave', '0'); 
     127 
     128        add_option('disabler_version', '0'); 
     129        add_option('disabler_nourl', '0'); 
     130    } 
     131 
    118132// Load the options page 
    119 add_action('admin_menu', 'ippy_disabler_admin_page'); 
    120  
    121 function ippy_disabler_admin_page() { 
    122     add_options_page('Disabler Options', 'Disabler', 'manage_options', 'disabler', 'ippy_disabler_options'); 
     133function disabler_options() { 
     134        if (function_exists('add_submenu_page')) { 
     135          add_submenu_page('options-general.php', 'Disabler', 'Disabler', 'activate_plugins', 'disabler/disabler_options.php'); 
     136        } 
    123137} 
    124138 
    125 // Register and define the settings 
    126 add_action('admin_init', 'ippy_disabler_admin_init'); 
     139// Hooks 
     140add_action('admin_menu', 'disabler_options'); 
    127141 
    128 function ippy_disabler_admin_init(){ 
    129     register_setting( 
    130         'disabler',               // settings page 
    131         'ippy_disabler_options'   // option name 
    132     ); 
    133 } 
     142register_activation_hook( __FILE__, 'disabler_activate' ); 
    134143 
    135144// donate link on manage plugin page 
     
    143152} 
    144153 
    145 // display the admin options page 
    146 function ippy_disabler_options() { 
    147  
    148     $options     = get_option( 'ippy_disabler_options' ); 
    149     $smartquotes = $options['smartquotes']; 
    150     $capitalp    = $options['capitalp']; 
    151     $autop       = $options['autop']; 
    152     $selfping    = $options['selfping']; 
    153     $norss       = $options['norss']; 
    154     $autosave    = $options['autosave']; 
    155     $revisions   = $options['revisions']; 
    156     $capitalp    = $options['capitalp']; 
    157     $version     = $options['version']; 
    158     $nourl       = $options['nourl']; 
     154     
    159155?> 
    160 <div class="wrap"> 
    161 <h2><?php _e("Disabler", 'ippy_dis'); ?></h2> 
    162  
    163 Options relating to the Custom Plugin. 
    164 <form action="options.php" method="post"> 
    165 <form method="post" width='1'> 
    166  
    167 <h3><?php _e("Front End Settings", 'ippy_dis'); ?></h3> 
    168  
    169 <p><?php _e("These are settings are changes on the front end. These are the things that affect what your site looks like when other people visit. What THEY see.  While these are actually things that annoy <strong>you</strong>, it all comes back to being things on the forward facing part of your site.", 'ippy_dis'); ?></p> 
    170  
    171 <fieldset class="disabler-frontend"> 
    172 <p> <input id='smartquotes' name='ippy_disabler_options[smartquotes]' type='checkbox' value='<?php echo $smartquotes; ?>' <?php if ( ( $smartquotes != '0') && !is_null($smartquotes) ) { echo ' checked="checked"'; } ?> /><?php _e("Disable Texturization -- smart quotes (a.k.a. curly quotes), em dash, en dash and ellipsis.", 'ippy_dis'); ?></p> 
    173  
    174 <p> <input id='capitalp' name='ippy_disabler_options[capitalp]' type='checkbox' value='<?php echo $capitalp; ?>' <?php if ( ( $capitalp != '0') && !is_null($capitalp) ) { echo ' checked="checked"'; } ?> /> <?php _e("Disable auto-correction of WordPress capitalization.", 'ippy_dis'); ?></p> 
    175  
    176 <p> <input id='autop' name='ippy_disabler_options[autop]' type='checkbox' value='<?php echo $autop; ?>' <?php if ( ( $autop != '0') && !is_null($autop) ) { echo ' checked="checked"'; } ?> /> <?php _e("Disable paragraphs (i.e. &lt;p&gt;  tags) from being automatically inserted in your posts.", 'ippy_dis'); ?></p> 
    177 </fieldset> 
    178  
    179 <h3><?php _e("Back End Settings", 'ippy_dis'); ?></h3> 
    180  
    181 <p><?php _e("Back End settings affect how WordPress runs. Nothing here will <em>break</em> your install, but some turn off 'desired' functions.", 'ippy_dis'); ?></p> 
    182  
    183 <fieldset class="disabler-backend"> 
    184 <p> <input id='selfping' name='ippy_disabler_options[selfping]' type='checkbox' value='<?php echo $selfping; ?>' <?php if ( ( $selfping != '0') && !is_null($selfping) ) { echo ' checked="checked"'; } ?> /> <?php _e("Disable self pings (i.e. trackbacks/pings from your own domain).", 'ippy_dis'); ?></p> 
    185  
    186 <p> <input id='norss' name='ippy_disabler_options[norss]' type='checkbox' value='<?php echo $norss; ?>' <?php if ( ( $norss != '0') && !is_null($norss) ) { echo ' checked="checked"'; } ?> /> <?php _e("Disable all RSS feeds.", 'ippy_dis'); ?></p> 
    187  
    188 <p> <input id='autosave' name='ippy_disabler_options[autosave]' type='checkbox' value='<?php echo $autosave; ?>' <?php if ( ( $autosave != '0') && !is_null($autosave) ) { echo ' checked="checked"'; } ?> /> <?php _e("Disable auto-saving of posts.", 'ippy_dis'); ?></p> 
    189  
    190 <p> <input id='revisions' name='ippy_disabler_options[revisions]' type='checkbox' value='<?php echo $revisions; ?>' <?php if ( ( $revisions != '0') && !is_null($revisions) ) { echo ' checked="checked"'; } ?> /> <?php _e("Disable post revisions.", 'ippy_dis'); ?></p> 
    191 </fieldset> 
    192  
    193 <h3><?php _e("Privacy Settings", 'ippy_dis'); ?></h3> 
    194  
    195 <p><?php _e("These settings help obfuscate information about your blog to the world (inclyding to Wordpress.org). While they don't protect you from anything, they do make it a little harder for people to get information about you and your site.", 'ippy_dis'); ?></p> 
    196  
    197 <fieldset class="disabler-privacy"> 
    198 <p> <input id='version' name='ippy_disabler_options[version]' type='checkbox' value='<?php echo $version; ?>' <?php if ( ( $version != '0') && !is_null($version) ) { echo ' checked="checked"'; } ?> /> <?php _e("Disable WordPress from printing it's version in your headers (only seen via View Source).", 'ippy_dis'); ?></p> 
    199  
    200 <p> <input id='nourl' name='ippy_disabler_options[nourl]' type='checkbox' value='<?php echo $nourl; ?>' <?php if ( ( $nourl != '0') && !is_null($nourl) ) { echo ' checked="checked"'; } ?> /> <?php _e("Disable WordPress from sending your URL information when checking for updates.", 'ippy_dis'); ?></p> 
    201 </fieldset> 
    202  
    203 <p class="submit"><input type="submit" name="update" value="<?php _e("Update Options", 'ippy_dis'); ?>" /></p> 
    204  
    205 <input name="Submit" type="submit" value="<?php esc_attr_e('Save Changes'); ?>" /> 
    206 </form></div> 
    207  
    208 <?php 
    209 } 
  • disabler/trunk/disabler_options.php

    r605326 r605970  
    22/* 
    33 
    4 Copyright 2010-11 Mika Epstein (email: ipstenu@ipstenu.org) 
     4Copyright 2010-12 Mika Epstein (email: ipstenu@ipstenu.org) 
    55 
    66    This file is part of Disabler, a plugin for WordPress. 
  • disabler/trunk/readme.txt

    r605326 r605970  
    55Tested up to: 3.5 
    66Donate link: https://www.wepay.com/donations/halfelf-wp 
    7 Stable tag: 2.3 
     7Stable tag: 2.3.1 
    88 
    99Instead of installing a million plugins to turn off features you don't want, why not use ONE plugin? 
     
    4141==Changelog== 
    4242A giant thank you to everyone at http://wptavern.com for suggestions about what to add to this plugin. 
     43 
     44=2.3.1= 
     45* 29 September, 2012 by Ipstenu 
     46* You'd like to save options, no? 
    4347 
    4448= 2.3 = 
     
    1191231. Standard View 
    1201242. Options checked 
     125 
     126== Upgrade Notice == 
     127 
     128= 2.3.1 = 
     129Version 2.3 doesn't like to save settings. You may want to upgrade to fix that. 
Note: See TracChangeset for help on using the changeset viewer.