Plugin Directory

Changeset 2008623


Ignore:
Timestamp:
01/08/2019 07:16:03 PM (7 years ago)
Author:
digitalarbyter
Message:

Added a help-section and a warning-notice for the "disable all http-requests"-function

Location:
wp-tweaker/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • wp-tweaker/trunk/inc/wp-tweaker-admin.php

    r1975671 r2008623  
    55}
    66
    7 
    87class WPTweaker_SettingsPage
    98{
     
    1817    public function wptweaker_add_plugin_page()
    1918    {
    20         add_options_page(
     19        $page = add_options_page(
    2120            'WP-Tweaker',
    2221            'WP-Tweaker',
     
    2524            array( $this, 'wptweaker_create_admin_page' )
    2625        );
     26        add_action(
     27                'load-' .$page,
     28                array(
     29                    __CLASS__,
     30                    'add_help'
     31                )
     32            );
    2733    }
    2834
     
    3036    {
    3137        // Set class property
    32         $this->wptweaker_options = get_option( 'wptweaker_settings' );
     38        $this->wptweaker_options = get_option( 'wptweaker_settings' )
    3339        ?>
    3440        <div class="wrap">
     
    154160        add_settings_field(
    155161            '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!]',
    157163            array( $this, 'callback_wptweaker_setting_9' ),
    158164            'my-setting-admin',
     
    222228            'wptweaker_setting_section_loading_time'
    223229        );
     230
    224231    }
    225232
     
    484491             );
    485492     }
     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
    486546}
    487547?>
  • wp-tweaker/trunk/readme.txt

    r1975671 r2008623  
    33Tags: tweaks, booster, performance, speed, optimisation, page speed, page load time
    44Requires at least: 4.9.6
    5 Tested up to: 4.9.6
     5Tested up to: 5.0.2
    66Requires PHP: 5.5.38
    77License: GPLv3
     
    62622. The single features are separated in different sections
    6363
    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
    6568= 1.2.6 16.11.18=
    6669* added function to empty the WP-trash automatically every 7 days
  • wp-tweaker/trunk/wp-tweaker.php

    r1975671 r2008623  
    88
    99Description: 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
     10Version: 1.3
    1111Author: digitalarbyter
    1212Author URI:  https://digitalarbyter.de
     
    343417: Remove login-shake on errors
    353518: Empty WP-Trash every 7 days
     36
    3637*/
    3738
     
    156157}
    157158
     159
     160
    158161//Fire!
    159162$wptweaker_options=get_option('wptweaker_settings');
Note: See TracChangeset for help on using the changeset viewer.