Changeset 2008623
- Timestamp:
- 01/08/2019 07:16:03 PM (7 years ago)
- Location:
- wp-tweaker/trunk
- Files:
-
- 3 edited
-
inc/wp-tweaker-admin.php (modified) (7 diffs)
-
readme.txt (modified) (2 diffs)
-
wp-tweaker.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-tweaker/trunk/inc/wp-tweaker-admin.php
r1975671 r2008623 5 5 } 6 6 7 8 7 class WPTweaker_SettingsPage 9 8 { … … 18 17 public function wptweaker_add_plugin_page() 19 18 { 20 add_options_page(19 $page = add_options_page( 21 20 'WP-Tweaker', 22 21 'WP-Tweaker', … … 25 24 array( $this, 'wptweaker_create_admin_page' ) 26 25 ); 26 add_action( 27 'load-' .$page, 28 array( 29 __CLASS__, 30 'add_help' 31 ) 32 ); 27 33 } 28 34 … … 30 36 { 31 37 // Set class property 32 $this->wptweaker_options = get_option( 'wptweaker_settings' ) ;38 $this->wptweaker_options = get_option( 'wptweaker_settings' ) 33 39 ?> 34 40 <div class="wrap"> … … 154 160 add_settings_field( 155 161 'wptweaker_setting_9', 156 'Disable automatic http-requests by Plugins & Themes ',162 'Disable automatic http-requests by Plugins & Themes [WARNING: this will also stop the update-notifications!]', 157 163 array( $this, 'callback_wptweaker_setting_9' ), 158 164 'my-setting-admin', … … 222 228 'wptweaker_setting_section_loading_time' 223 229 ); 230 224 231 } 225 232 … … 484 491 ); 485 492 } 493 494 495 496 public static function add_help() 497 { 498 $screen = get_current_screen(); 499 500 $screen->add_help_tab( 501 array( 502 'id' => 'wpt_categories', 503 'title' => 'Tweaker categories', 504 'content' => '<p>This plugin allows you to optimize the following things about your WordPress:</p>'. 505 '<ul>'. 506 '<li><em>Unneeded header-info</em><br />'. 507 'WordPress comes with many header-informations that nobody but the WordPress-devs really need ;)</li>'. 508 509 '<li><em>External ressources and data</em><br />'. 510 'WordPress uses a lot of external ressources and data that slow down your blog!</li>'. 511 512 '<li><em>Boosting Database</em><br />'. 513 'The database of WordPress can act like a beast. Take controll over it!</li>'. 514 515 '<li><em>Optimize the Page Speed</em><br />'. 516 'WordPress comes with sooo many functions and options so speeding WordPress up is always a great idea!</li>'. 517 518 '<li><em>Security settings</em><br />'. 519 'Every tweaking is worthless unless you ignore WordPress security!</li>'. 520 '</ul>' 521 ) 522 ); 523 $screen->add_help_tab( 524 array( 525 'id' => 'wpt_settings', 526 'title' => 'Settings', 527 'content' => '<p><strong>You can activate and deactivate every single option by itself!</strong><p>'. 528 '<p>Depending on your plugins and installed theme some of the provided features will cause trouble. Try deactvating some of the features whenever you run into any trouble tweaking your WordPress!' 529 ) 530 ); 531 $screen->add_help_tab( 532 array( 533 'id' => 'wpt_documentation', 534 'title' => 'Documentation', 535 'content' => '<p>One day there will be an awesom documentation.</p>'. 536 '<p>I guess.</p>' 537 ) 538 ); 539 $screen->set_help_sidebar( 540 '<p><strong>About the author</p>'. 541 '<p><a href="https://www.instagram.com/digitalarbyter/" target="_blank">Instagram</a></p>'. 542 '<p><a href="https://digitalarbyter.de" target="_blank">WWW</a></p>' 543 ); 544 } 545 486 546 } 487 547 ?> -
wp-tweaker/trunk/readme.txt
r1975671 r2008623 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: 4.9.65 Tested up to: 5.0.2 6 6 Requires PHP: 5.5.38 7 7 License: GPLv3 … … 62 62 2. The single features are separated in different sections 63 63 64 == Changelog == 64 = 1.3.0 08.01.19= 65 * added a help-section in the admin-header 66 * added a warning-notice to the disable http-requests function 67 65 68 = 1.2.6 16.11.18= 66 69 * added function to empty the WP-trash automatically every 7 days -
wp-tweaker/trunk/wp-tweaker.php
r1975671 r2008623 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 18 WordPress functions each with one mouse click. 10 Version: 1. 2.710 Version: 1.3 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 36 37 */ 37 38 … … 156 157 } 157 158 159 160 158 161 //Fire! 159 162 $wptweaker_options=get_option('wptweaker_settings');
Note: See TracChangeset
for help on using the changeset viewer.