Changeset 1890217
- Timestamp:
- 06/09/2018 03:34:09 PM (8 years ago)
- Location:
- wp-tweaker/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (2 diffs)
-
wp-tweaker.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-tweaker/trunk/readme.txt
r1889173 r1890217 21 21 - Remove links to adjacent posts 22 22 - Limit the stored Post-Revisions to a maximum of 5 23 - Disable automatic http-requests by Plugins & Themes 23 24 24 25 All you need to do to control this features/functions is … … 39 40 40 41 == Changelog == 41 1.0.1 07.06.18: Did some minor bugfixes and improvements 42 1.0 03.06.18: Initial release 42 1.1 09.06.18: 43 - Added feature "disable http-requests" 44 1.0.1 07.06.18: 45 - Did some minor bugfixes and improvements 46 1.0 03.06.18: 47 - Initial release -
wp-tweaker/trunk/wp-tweaker.php
r1889173 r1890217 8 8 9 9 Description: This slim plugin removes many (unneeded) standard features from WordPress to give your blog the ultimate performance boost! Currently you can disable 8 WordPress functions each with one mouse click. 10 Version: 1. 0.110 Version: 1.1 11 11 Author: Olli Kluth 12 Author URI: https:// digitalarbyter.de12 Author URI: https://blog-optimierung.de 13 13 Plugin URI: https://wordpress.org/plugins/wp-tweaker/ 14 14 … … 24 24 7: Angrenzende Links zu Posts im Header entfernen 25 25 8: Post-Revisionen auf 5 begrenzen 26 9: Block http-requests by plugins/themes 26 27 */ 27 28 … … 141 142 'Limit Post-Revisions to 5', 142 143 array( $this, 'callback_wptweaker_setting_8' ), 144 'my-setting-admin', 145 'wptweaker_setting_section_id' 146 ); 147 add_settings_field( 148 'wptweaker_setting_9', 149 'Disable automatic http-requests by Plugins & Themes', 150 array( $this, 'callback_wptweaker_setting_9' ), 143 151 'my-setting-admin', 144 152 'wptweaker_setting_section_id' … … 165 173 if( isset( $wptweaker_input['wptweaker_setting_8'] ) ) 166 174 $wptweaker_new_input['wptweaker_setting_8'] = absint( $wptweaker_input['wptweaker_setting_8'] ); 175 if( isset( $wptweaker_input['wptweaker_setting_9'] ) ) 176 $wptweaker_new_input['wptweaker_setting_9'] = absint( $wptweaker_input['wptweaker_setting_9'] ); 167 177 return $wptweaker_new_input; 168 178 } … … 266 276 '<input type="radio" id="wptweaker_setting_8" name="wptweaker_settings[wptweaker_setting_8]" value="1" %s /> on ', 267 277 $this->wptweaker_options['wptweaker_setting_8'] == 1 ? "checked" : '' 278 ); 279 } 280 281 public function callback_wptweaker_setting_9() 282 { 283 printf( 284 '<input type="radio" id="wptweaker_setting_9" name="wptweaker_settings[wptweaker_setting_9]" value="0" %s /> off ', 285 $this->wptweaker_options['wptweaker_setting_9'] == 0 ? "checked" : '' 286 ); 287 printf( 288 '<input type="radio" id="wptweaker_setting_9" name="wptweaker_settings[wptweaker_setting_9]" value="1" %s /> on ', 289 $this->wptweaker_options['wptweaker_setting_9'] == 1 ? "checked" : '' 268 290 ); 269 291 } … … 319 341 } 320 342 343 function wptweaker_setting_9() 344 { 345 add_filter( 'pre_http_request', '__return_true', 100 ); 346 } 347 321 348 //Fire! 322 349 $wptweaker_options=get_option('wptweaker_settings');
Note: See TracChangeset
for help on using the changeset viewer.