Changeset 1975671
- Timestamp:
- 11/16/2018 07:18:54 PM (7 years ago)
- Location:
- wp-tweaker/trunk
- Files:
-
- 3 edited
-
inc/wp-tweaker-admin.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
-
wp-tweaker.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-tweaker/trunk/inc/wp-tweaker-admin.php
r1919567 r1975671 214 214 'my-setting-admin', 215 215 'wptweaker_setting_section_security' 216 ); 217 add_settings_field( 218 'wptweaker_setting_18', 219 'Automatically empty the WP-trash every 7 days', 220 array( $this, 'callback_wptweaker_setting_18' ), 221 'my-setting-admin', 222 'wptweaker_setting_section_loading_time' 216 223 ); 217 224 } … … 254 261 if( isset( $wptweaker_input['wptweaker_setting_17'] ) ) 255 262 $wptweaker_new_input['wptweaker_setting_17'] = absint( $wptweaker_input['wptweaker_setting_17'] ); 263 if( isset( $wptweaker_input['wptweaker_setting_18'] ) ) 264 $wptweaker_new_input['wptweaker_setting_18'] = absint( $wptweaker_input['wptweaker_setting_18'] ); 256 265 return $wptweaker_new_input; 257 266 } … … 464 473 ); 465 474 } 475 public function callback_wptweaker_setting_18() 476 { 477 printf( 478 '<input type="radio" id="wptweaker_setting_18" name="wptweaker_settings[wptweaker_setting_18]" value="0" %s /> off ', 479 $this->wptweaker_options['wptweaker_setting_18'] == 0 ? "checked" : '' 480 ); 481 printf( 482 '<input type="radio" id="wptweaker_setting_18" name="wptweaker_settings[wptweaker_setting_18]" value="1" %s /> on ', 483 $this->wptweaker_options['wptweaker_setting_18'] == 1 ? "checked" : '' 484 ); 485 } 466 486 } 467 487 ?> -
wp-tweaker/trunk/readme.txt
r1919567 r1975671 31 31 * Disable url auto-linking in comments 32 32 * Disable login-shake for wrong credentials 33 * Empty the WP-Trash every 7 days 33 34 34 35 All you need to do to control this features/functions is … … 62 63 63 64 == Changelog == 65 = 1.2.6 16.11.18= 66 * added function to empty the WP-trash automatically every 7 days 67 64 68 = 1.2.5 24.7.18 = 65 69 * added feature to remove the url-field from comments -
wp-tweaker/trunk/wp-tweaker.php
r1919567 r1975671 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 6WordPress functions each with one mouse click.10 Version: 1.2. 69 Description: This slim plugin removes many (unneeded) standard features from WordPress to give your blog the ultimate performance boost! Currently you can disable 18 WordPress functions each with one mouse click. 10 Version: 1.2.7 11 11 Author: digitalarbyter 12 12 Author URI: https://digitalarbyter.de … … 33 33 16: Disable URL auto-linking in comments 34 34 17: Remove login-shake on errors 35 18: Empty WP-Trash every 7 days 35 36 */ 36 37 … … 150 151 } 151 152 153 function wptweaker_setting_18() 154 { 155 define('EMPTY_TRASH_DAYS', 7 ); 156 } 157 152 158 //Fire! 153 159 $wptweaker_options=get_option('wptweaker_settings');
Note: See TracChangeset
for help on using the changeset viewer.