Changeset 1919567
- Timestamp:
- 08/03/2018 07:40:19 PM (8 years ago)
- Location:
- wp-tweaker/trunk
- Files:
-
- 3 edited
-
inc/wp-tweaker-admin.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
-
wp-tweaker.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wp-tweaker/trunk/inc/wp-tweaker-admin.php
r1914287 r1919567 205 205 'Disable url auto-linking in comments', 206 206 array( $this, 'callback_wptweaker_setting_16' ), 207 'my-setting-admin', 208 'wptweaker_setting_section_security' 209 ); 210 add_settings_field( 211 'wptweaker_setting_17', 212 'Remove the login-shake for wrong credentials', 213 array( $this, 'callback_wptweaker_setting_17' ), 207 214 'my-setting-admin', 208 215 'wptweaker_setting_section_security' … … 245 252 if( isset( $wptweaker_input['wptweaker_setting_16'] ) ) 246 253 $wptweaker_new_input['wptweaker_setting_16'] = absint( $wptweaker_input['wptweaker_setting_16'] ); 254 if( isset( $wptweaker_input['wptweaker_setting_17'] ) ) 255 $wptweaker_new_input['wptweaker_setting_17'] = absint( $wptweaker_input['wptweaker_setting_17'] ); 247 256 return $wptweaker_new_input; 248 257 } … … 444 453 ); 445 454 } 455 public function callback_wptweaker_setting_17() 456 { 457 printf( 458 '<input type="radio" id="wptweaker_setting_17" name="wptweaker_settings[wptweaker_setting_17]" value="0" %s /> off ', 459 $this->wptweaker_options['wptweaker_setting_17'] == 0 ? "checked" : '' 460 ); 461 printf( 462 '<input type="radio" id="wptweaker_setting_17" name="wptweaker_settings[wptweaker_setting_17]" value="1" %s /> on ', 463 $this->wptweaker_options['wptweaker_setting_17'] == 1 ? "checked" : '' 464 ); 465 } 446 466 } 447 467 ?> -
wp-tweaker/trunk/readme.txt
r1914287 r1919567 30 30 * Remove the url-field from comments 31 31 * Disable url auto-linking in comments 32 * Disable login-shake for wrong credentials 32 33 33 34 All you need to do to control this features/functions is -
wp-tweaker/trunk/wp-tweaker.php
r1914287 r1919567 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 16 WordPress functions each with one mouse click. 10 Version: 1.2. 510 Version: 1.2.6 11 11 Author: digitalarbyter 12 12 Author URI: https://digitalarbyter.de … … 30 30 13: Disable the XML-RPC 31 31 14: Remove post by email function 32 15: Disable URL-fields on comments 33 16: Disable URL auto-linking in comments 34 17: Remove login-shake on errors 32 35 */ 33 36 … … 138 141 } 139 142 143 function wptweaker_setting_17() 144 { 145 function wpt_login_shake() 146 { 147 remove_action('login_head', 'wp_shake_js', 12); 148 } 149 add_action('login_head', 'wpt_login_shake'); 150 } 151 140 152 //Fire! 141 153 $wptweaker_options=get_option('wptweaker_settings');
Note: See TracChangeset
for help on using the changeset viewer.