Plugin Directory

Changeset 1894086


Ignore:
Timestamp:
06/17/2018 10:02:56 AM (8 years ago)
Author:
digitalarbyter
Message:

v-1.22: Added new features

Location:
wp-tweaker/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-tweaker/trunk/inc/wp-tweaker-admin.php

    r1892391 r1894086  
    170170            'Disable login error message',
    171171            array( $this, 'callback_wptweaker_setting_11' ),
     172            'my-setting-admin',
     173            'wptweaker_setting_section_security'
     174        );
     175        add_settings_field(
     176            'wptweaker_setting_12',
     177            'Disable new Theme on major WP-Updates',
     178            array( $this, 'callback_wptweaker_setting_12' ),
     179            'my-setting-admin',
     180            'wptweaker_setting_section_security'
     181        );
     182        add_settings_field(
     183            'wptweaker_setting_13',
     184            'Disable the XML-RPC',
     185            array( $this, 'callback_wptweaker_setting_13' ),
    172186            'my-setting-admin',
    173187            'wptweaker_setting_section_security'
     
    200214        if( isset( $wptweaker_input['wptweaker_setting_11'] ) )
    201215            $wptweaker_new_input['wptweaker_setting_11'] = absint( $wptweaker_input['wptweaker_setting_11'] );
     216        if( isset( $wptweaker_input['wptweaker_setting_12'] ) )
     217            $wptweaker_new_input['wptweaker_setting_12'] = absint( $wptweaker_input['wptweaker_setting_12'] );
     218        if( isset( $wptweaker_input['wptweaker_setting_13'] ) )
     219            $wptweaker_new_input['wptweaker_setting_13'] = absint( $wptweaker_input['wptweaker_setting_13'] );
    202220        return $wptweaker_new_input;
    203221    }
     
    339357             );
    340358     }
     359
     360     public function callback_wptweaker_setting_12()
     361     {
     362         printf(
     363             '<input type="radio" id="wptweaker_setting_12" name="wptweaker_settings[wptweaker_setting_12]" value="0" %s /> off ',
     364             $this->wptweaker_options['wptweaker_setting_12'] == 0  ? "checked" : ''
     365             );
     366         printf(
     367             '<input type="radio" id="wptweaker_setting_12" name="wptweaker_settings[wptweaker_setting_12]" value="1" %s /> on ',
     368             $this->wptweaker_options['wptweaker_setting_12'] == 1  ? "checked" : ''
     369             );
     370     }
     371
     372     public function callback_wptweaker_setting_13()
     373     {
     374         printf(
     375             '<input type="radio" id="wptweaker_setting_13" name="wptweaker_settings[wptweaker_setting_13]" value="0" %s /> off ',
     376             $this->wptweaker_options['wptweaker_setting_13'] == 0  ? "checked" : ''
     377             );
     378         printf(
     379             '<input type="radio" id="wptweaker_setting_13" name="wptweaker_settings[wptweaker_setting_13]" value="1" %s /> on ',
     380             $this->wptweaker_options['wptweaker_setting_13'] == 1  ? "checked" : ''
     381             );
     382     }
    341383}
    342384?>
  • wp-tweaker/trunk/readme.txt

    r1892391 r1894086  
    1818- Remove the RSD-Link
    1919- Remove the RSS-Links
    20 - Remove the Shortlink 
     20- Remove the Shortlink
    2121- Remove links to adjacent posts
    2222- Limit the stored Post-Revisions to a maximum of 5
     
    2424- Disable the WordPress-hearbeat
    2525- Disable login error messages
     26- Disable new Theme on major WP updates
     27- Disable the XML-RPC
    2628
    2729All you need to do to control this features/functions is
     
    4244
    4345== Changelog ==
     461.2.2 16.06.18
     47- added feature to disable new Themes on major WP updates
     48- added feature to diasble the XML-RPC
    44491.2.1 13.06.18
    4550- added feature login error message
     
    4853- added categories
    4954- added feature heartbeat
    50 1.1 09.06.18: 
     551.1 09.06.18:
    5156- Added feature "disable http-requests"
    52 1.0.1 07.06.18: 
     571.0.1 07.06.18:
    5358- Did some minor bugfixes and improvements
    54 1.0 03.06.18: 
     591.0 03.06.18:
    5560- Initial release
  • wp-tweaker/trunk/wp-tweaker.php

    r1892396 r1894086  
    77Plugin Name: WP-Tweaker
    88
    9 Description: This slim plugin removes many (unneeded) standard features from WordPress to give your blog the ultimate performance boost! Currently you can disable 10 WordPress functions each with one mouse click.
    10 Version: 1.2.1
    11 Author: Olli Kluth
    12 Author URI:  https://blog-optimierung.de
     9Description: This slim plugin removes many (unneeded) standard features from WordPress to give your blog the ultimate performance boost! Currently you can disable 13 WordPress functions each with one mouse click.
     10Version: 1.2.2
     11Author: digitalarbyter
     12Author URI:  https://digitalarbyter.de
    1313Plugin URI:  https://wordpress.org/plugins/wp-tweaker/
    1414
     
    272710: Disable heartbeat
    282811: Disable Login-Error
     2912: Disable new themes on major WP updates
     3013: Disable the XML-RPC
    2931*/
    3032
     
    104106}
    105107
     108function wptweaker_setting_12()
     109{
     110  define( 'CORE_UPGRADE_SKIP_NEW_BUNDLED', true );
     111}
     112
     113function wptweaker_setting_13()
     114{
     115  add_filter('xmlrpc_enabled', '__return_false');
     116}
     117
    106118//Fire!
    107119$wptweaker_options=get_option('wptweaker_settings');
Note: See TracChangeset for help on using the changeset viewer.