Changeset 1894086
- Timestamp:
- 06/17/2018 10:02:56 AM (8 years ago)
- Location:
- wp-tweaker/trunk
- Files:
-
- 3 edited
-
inc/wp-tweaker-admin.php (modified) (3 diffs)
-
readme.txt (modified) (4 diffs)
-
wp-tweaker.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-tweaker/trunk/inc/wp-tweaker-admin.php
r1892391 r1894086 170 170 'Disable login error message', 171 171 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' ), 172 186 'my-setting-admin', 173 187 'wptweaker_setting_section_security' … … 200 214 if( isset( $wptweaker_input['wptweaker_setting_11'] ) ) 201 215 $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'] ); 202 220 return $wptweaker_new_input; 203 221 } … … 339 357 ); 340 358 } 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 } 341 383 } 342 384 ?> -
wp-tweaker/trunk/readme.txt
r1892391 r1894086 18 18 - Remove the RSD-Link 19 19 - Remove the RSS-Links 20 - Remove the Shortlink 20 - Remove the Shortlink 21 21 - Remove links to adjacent posts 22 22 - Limit the stored Post-Revisions to a maximum of 5 … … 24 24 - Disable the WordPress-hearbeat 25 25 - Disable login error messages 26 - Disable new Theme on major WP updates 27 - Disable the XML-RPC 26 28 27 29 All you need to do to control this features/functions is … … 42 44 43 45 == Changelog == 46 1.2.2 16.06.18 47 - added feature to disable new Themes on major WP updates 48 - added feature to diasble the XML-RPC 44 49 1.2.1 13.06.18 45 50 - added feature login error message … … 48 53 - added categories 49 54 - added feature heartbeat 50 1.1 09.06.18: 55 1.1 09.06.18: 51 56 - Added feature "disable http-requests" 52 1.0.1 07.06.18: 57 1.0.1 07.06.18: 53 58 - Did some minor bugfixes and improvements 54 1.0 03.06.18: 59 1.0 03.06.18: 55 60 - Initial release -
wp-tweaker/trunk/wp-tweaker.php
r1892396 r1894086 7 7 Plugin Name: WP-Tweaker 8 8 9 Description: This slim plugin removes many (unneeded) standard features from WordPress to give your blog the ultimate performance boost! Currently you can disable 1 0WordPress functions each with one mouse click.10 Version: 1.2. 111 Author: Olli Kluth12 Author URI: https:// blog-optimierung.de9 Description: 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. 10 Version: 1.2.2 11 Author: digitalarbyter 12 Author URI: https://digitalarbyter.de 13 13 Plugin URI: https://wordpress.org/plugins/wp-tweaker/ 14 14 … … 27 27 10: Disable heartbeat 28 28 11: Disable Login-Error 29 12: Disable new themes on major WP updates 30 13: Disable the XML-RPC 29 31 */ 30 32 … … 104 106 } 105 107 108 function wptweaker_setting_12() 109 { 110 define( 'CORE_UPGRADE_SKIP_NEW_BUNDLED', true ); 111 } 112 113 function wptweaker_setting_13() 114 { 115 add_filter('xmlrpc_enabled', '__return_false'); 116 } 117 106 118 //Fire! 107 119 $wptweaker_options=get_option('wptweaker_settings');
Note: See TracChangeset
for help on using the changeset viewer.