Changeset 2067411
- Timestamp:
- 04/11/2019 06:13:41 PM (7 years ago)
- Location:
- wp-tweaker/trunk
- Files:
-
- 3 edited
-
inc/wp-tweaker-admin.php (modified) (4 diffs)
-
readme.txt (modified) (3 diffs)
-
wp-tweaker.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-tweaker/trunk/inc/wp-tweaker-admin.php
r2008623 r2067411 225 225 'Automatically empty the WP-trash every 7 days', 226 226 array( $this, 'callback_wptweaker_setting_18' ), 227 'my-setting-admin', 228 'wptweaker_setting_section_loading_time' 229 ); 230 add_settings_field( 231 'wptweaker_setting_19', 232 'Remove query strings from ressources', 233 array( $this, 'callback_wptweaker_setting_19' ), 227 234 'my-setting-admin', 228 235 'wptweaker_setting_section_loading_time' … … 270 277 if( isset( $wptweaker_input['wptweaker_setting_18'] ) ) 271 278 $wptweaker_new_input['wptweaker_setting_18'] = absint( $wptweaker_input['wptweaker_setting_18'] ); 279 if( isset( $wptweaker_input['wptweaker_setting_19'] ) ) 280 $wptweaker_new_input['wptweaker_setting_19'] = absint( $wptweaker_input['wptweaker_setting_19'] ); 272 281 return $wptweaker_new_input; 273 282 } … … 489 498 '<input type="radio" id="wptweaker_setting_18" name="wptweaker_settings[wptweaker_setting_18]" value="1" %s /> on ', 490 499 $this->wptweaker_options['wptweaker_setting_18'] == 1 ? "checked" : '' 500 ); 501 } 502 public function callback_wptweaker_setting_19() 503 { 504 printf( 505 '<input type="radio" id="wptweaker_setting_19" name="wptweaker_settings[wptweaker_setting_19]" value="0" %s /> off ', 506 $this->wptweaker_options['wptweaker_setting_19'] == 0 ? "checked" : '' 507 ); 508 printf( 509 '<input type="radio" id="wptweaker_setting_19" name="wptweaker_settings[wptweaker_setting_19]" value="1" %s /> on ', 510 $this->wptweaker_options['wptweaker_setting_19'] == 1 ? "checked" : '' 491 511 ); 492 512 } … … 533 553 'id' => 'wpt_documentation', 534 554 'title' => 'Documentation', 535 'content' => '<p>One day there will be an awesom documentation.</p>'.555 'content' => '<p>One day there will be an awesome documentation.</p>'. 536 556 '<p>I guess.</p>' 537 557 ) -
wp-tweaker/trunk/readme.txt
r2011608 r2067411 3 3 Tags: tweaks, booster, performance, speed, optimisation, page speed, page load time 4 4 Requires at least: 4.9.6 5 Tested up to: 5. 0.25 Tested up to: 5.1.1 6 6 Requires PHP: 5.5.38 7 7 License: GPLv3 … … 32 32 * Disable login-shake for wrong credentials 33 33 * Empty the WP-Trash every 7 days 34 * Remove query strings from ressources 34 35 35 36 All you need to do to control this features/functions is … … 63 64 64 65 == Changelog == 66 67 = 1.3.1 11.04.19 = 68 * added feature to remove query strings for ressources 65 69 66 70 = 1.3.0 08.01.19 = -
wp-tweaker/trunk/wp-tweaker.php
r2008623 r2067411 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 8WordPress functions each with one mouse click.10 Version: 1.3 9 Description: This slim plugin removes many (unneeded) standard features from WordPress to give your blog the ultimate performance boost! Currently you can disable 19 WordPress functions each with one mouse click. 10 Version: 1.3.1 11 11 Author: digitalarbyter 12 12 Author URI: https://digitalarbyter.de … … 34 34 17: Remove login-shake on errors 35 35 18: Empty WP-Trash every 7 days 36 19: Remove query strings 36 37 37 38 */ … … 157 158 } 158 159 160 function wptweaker_setting_19() 161 { 162 function _remove_script_version ( $some_src ){ 163 $explode = explode( '?', $some_src ); 164 return $explode[0]; 165 } 166 add_filter( 'script_loader_src', '_remove_script_version', 15, 1 ); 167 add_filter( 'style_loader_src', '_remove_script_version', 15, 1 ); 168 } 169 159 170 160 171
Note: See TracChangeset
for help on using the changeset viewer.