Changeset 468107
- Timestamp:
- 11/27/2011 04:29:05 AM (14 years ago)
- Location:
- revision-cleaner
- Files:
-
- 2 edited
- 9 copied
-
tags/2.0.2 (copied) (copied from revision-cleaner/trunk)
-
tags/2.0.2/po/revision-cleaner-zh_CN.mo (copied) (copied from revision-cleaner/trunk/po/revision-cleaner-zh_CN.mo)
-
tags/2.0.2/po/revision-cleaner-zh_CN.po (copied) (copied from revision-cleaner/trunk/po/revision-cleaner-zh_CN.po)
-
tags/2.0.2/po/revision-cleaner.pot (copied) (copied from revision-cleaner/trunk/po/revision-cleaner.pot)
-
tags/2.0.2/readme.txt (copied) (copied from revision-cleaner/trunk/readme.txt) (2 diffs)
-
tags/2.0.2/revision-cleaner.php (copied) (copied from revision-cleaner/trunk/revision-cleaner.php) (14 diffs)
-
tags/2.0.2/screenshot-1.png (copied) (copied from revision-cleaner/trunk/screenshot-1.png)
-
tags/2.0.2/screenshot-2.png (copied) (copied from revision-cleaner/trunk/screenshot-2.png)
-
tags/2.0.2/screenshot-3.png (copied) (copied from revision-cleaner/trunk/screenshot-3.png)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/revision-cleaner.php (modified) (14 diffs)
Legend:
- Unmodified
- Added
- Removed
-
revision-cleaner/tags/2.0.2/readme.txt
r468079 r468107 4 4 Requires at least: 3.1 5 5 Tested up to: 3.2 6 Stable tag: 2.0. 16 Stable tag: 2.0.2 7 7 License: GPLv2 or later 8 8 … … 26 26 == Changelog == 27 27 28 = 2.0.2 = 29 * Add:Try to deactivate REVISION_CLEANER when it goes crazy 30 * Fix:New Administrator can't set his profile 31 * Upgrade: new option will not autoload to do things more efficient. 32 28 33 = 2.0.1 = 29 Fix Can't find Neo, I'm very sorry for any inconvenience ...34 Quick Fix Can't find Neo, I'm very sorry for any inconvenience ... 30 35 31 36 = 2.0 = -
revision-cleaner/tags/2.0.2/revision-cleaner.php
r468079 r468107 7 7 Plugin URI: http://mengzhuo.org/lab/RevisionC/ 8 8 Description: Auto clean your revisions while you don't needed any more 9 Version: 2.0. 19 Version: 2.0.2 10 10 Author: Meng Zhuo 11 11 Author URI: http://mengzhuo.org … … 29 29 */ 30 30 //definition goes here... 31 define('REVISION_CLEANER_VERSION', '2.0.1'); 31 define('REVISION_CLEANER_VERSION', '2.0.2'); 32 define('REVISION_CLEANER_NAME','revision-cleaner'); 32 33 define('RevC_DEBUG',FALSE); 33 34 //definition end. 34 35 35 load_plugin_textdomain( 'revision-cleaner', false, dirname( plugin_basename( __FILE__ ) ) . '/po/');36 load_plugin_textdomain(REVISION_CLEANER_NAME, false, dirname( plugin_basename( __FILE__ ) ) . '/po/'); 36 37 37 38 // Make sure we don't expose any info if called directly [FROM AKISMET] … … 55 56 'keep_draft_revision' => TRUE 56 57 ); 57 add_user_meta( 1, 'Revis_Setting', $admin_setting);58 update_user_meta( 1, 'Revis_Setting', $admin_setting); 58 59 update_user_meta( $user_id, 'Revis_Setting', $admin_setting ); 59 60 return TRUE; … … 83 84 ); 84 85 $version = REVISION_CLEANER_VERSION; 85 $msg = __("Revision Cleaner CRAZED!", 'revision-cleaner').'<br/>'.__("Version").": $version | ";86 $msg = __("Revision Cleaner CRAZED!",REVISION_CLEANER_NAME).'<br/>'.__("Version").": $version | "; 86 87 $msg .= __("crazy_type")." :$code_id -> $addition_msg".'<br/>'; 87 wp_die($msg.$Revis_Error_ID[$code_id],__('Revision Cleaner CRAZED!','revision-cleaner')); 88 89 // try to deactivate this plugin while Crazy 90 if ( ! current_user_can('activate_plugins') ){ 91 wp_die(__('You do not have sufficient permissions to deactivate plugins for this site.')); 92 } 93 check_admin_referer('deactivate-plugin_' . REVISION_CLEANER_NAME); 94 $msg = __('Deactivating Revision cleaner....'); 95 if (deactivate_plugins(REVISION_CLEANER_NAME)){ 96 $msg .= "[".__('Completed').']<br/>'; 97 } 98 else{ 99 $msg .= "[".__('Failed').']<br/>'; 100 } 101 wp_die($msg.$Revis_Error_ID[$code_id],__('Revision Cleaner CRAZED!',REVISION_CLEANER_NAME)); 88 102 } 89 103 function Revis_save_user_profile_fields( $user_id ) { … … 121 135 'keep_draft_revision' => TRUE 122 136 ); 123 add_user_meta( 1, 'Revis_Setting', $admin_setting);137 update_user_meta( 1, 'Revis_Setting', $admin_setting); 124 138 } 125 139 … … 156 170 if (!$setting_array){ 157 171 Revis_new_user_action($user_id); 172 $setting_array[0] = get_user_meta($user_id,'Revis_Setting'); 158 173 } 159 174 extract($setting_array[0]); … … 227 242 'version' => REVISION_CLEANER_VERSION 228 243 ); 229 add_option('Revis_Setting',$initial_array,'',' yes');244 add_option('Revis_Setting',$initial_array,'','no'); 230 245 231 246 //initial other user's setting … … 277 292 'version' => REVISION_CLEANER_VERSION 278 293 ); 279 add_option('Revis_Setting',$initial_array,'',' yes');280 add_option('Revis_Cleaned',0,'',' yes');294 add_option('Revis_Setting',$initial_array,'','no'); 295 add_option('Revis_Cleaned',0,'','no'); 281 296 return TRUE; 282 297 } … … 334 349 <div class="wrap"> 335 350 <div id="icon-options-general" class="icon32"><br></div> 336 <h2><?php _e('Revision Cleaner', 'revision-cleaner'); ?></h2>351 <h2><?php _e('Revision Cleaner',REVISION_CLEANER_NAME); ?></h2> 337 352 <form method='post' action=''> 338 353 <?php if (!$multi_user && current_user_can('administrator')){ … … 349 364 } 350 365 ?> 351 <h3><?php _e('Global Settings', 'revision-cleaner');?></h3>366 <h3><?php _e('Global Settings',REVISION_CLEANER_NAME);?></h3> 352 367 <table class="form-table"> 353 368 <tbody> 354 <tr><th><?php _e('Multi-Users', 'revision-cleaner');?></th>369 <tr><th><?php _e('Multi-Users',REVISION_CLEANER_NAME);?></th> 355 370 <td> 356 <label for="revis_multiuser"><input type="checkbox" name="multi_user" id="revis_multiuser" <?php checked($Revis_Setting['multi_user'], TRUE) ?> /><?php _e("Allow each user set their own interval", 'revision-cleaner');?></label>371 <label for="revis_multiuser"><input type="checkbox" name="multi_user" id="revis_multiuser" <?php checked($Revis_Setting['multi_user'], TRUE) ?> /><?php _e("Allow each user set their own interval",REVISION_CLEANER_NAME);?></label> 357 372 <?php 358 373 if ($multi_user && $current_user->data->ID == 1){ 359 374 $blog_admin_profile_url = site_url().'/wp-admin/profile.php#revis_advanced'; 360 375 echo '<p>'; 361 printf(__("As Multi-users on, You can set your interval at <a href='%s'>your profile</a>", 'revision-cleaner'), $blog_admin_profile_url);376 printf(__("As Multi-users on, You can set your interval at <a href='%s'>your profile</a>",REVISION_CLEANER_NAME), $blog_admin_profile_url); 362 377 echo '</p>'; }?> 363 378 </td></tr> 364 379 </tbody> 365 380 </table> 366 <h3><?php _e('Statistic', 'revision-cleaner');?></h3>381 <h3><?php _e('Statistic',REVISION_CLEANER_NAME);?></h3> 367 382 <table class="form-table"> 368 383 <tbody> 369 <tr valign="top"><th scope="row"><?php _e('Extant Revision', 'revision-cleaner');?></th><td><?php echo $Revis_revisions_now;?></td></tr>370 <tr valign="top"><th scope="row"><?php _e('Cleaned Revision', 'revision-cleaner');?></th><td><?php echo $Revis_Cleaned;?></td></tr>384 <tr valign="top"><th scope="row"><?php _e('Extant Revision',REVISION_CLEANER_NAME);?></th><td><?php echo $Revis_revisions_now;?></td></tr> 385 <tr valign="top"><th scope="row"><?php _e('Cleaned Revision',REVISION_CLEANER_NAME);?></th><td><?php echo $Revis_Cleaned;?></td></tr> 371 386 </tbody> 372 387 </table> 373 388 <h3 id='revis_users_overview'> 374 <?php _e('Users Setting Overview', 'revision-cleaner');?>389 <?php _e('Users Setting Overview',REVISION_CLEANER_NAME);?> 375 390 <a>▼</a><a class="hidden">▲</a> 376 391 </h3> … … 379 394 <thead><tr> 380 395 <th class="manage-column column-username"><?php _e('Username');?></th> 381 <th class="manage-column num" ><?php _e('Extant Revision', 'revision-cleaner');?></th>382 <th class="manage-column num column-posts"><?php _e('Interval', 'revision-cleaner');?></th>383 <th class="manage-column column-role"><?php _e("Keep draft's", 'revision-cleaner');?></th>384 <th class="manage-column column-role"><?php _e("Keep latest", 'revision-cleaner');?></th>396 <th class="manage-column num" ><?php _e('Extant Revision',REVISION_CLEANER_NAME);?></th> 397 <th class="manage-column num column-posts"><?php _e('Interval',REVISION_CLEANER_NAME);?></th> 398 <th class="manage-column column-role"><?php _e("Keep draft's",REVISION_CLEANER_NAME);?></th> 399 <th class="manage-column column-role"><?php _e("Keep latest",REVISION_CLEANER_NAME);?></th> 385 400 </tr></thead><tbody> 386 401 <?php … … 429 444 } 430 445 function Revis_Cleaner_menu(){ 431 add_options_page( __('Revision Cleaner', 'revision-cleaner'), __('Revision Cleaner','revision-cleaner'), 'manage_options', 'revision-cleaner-control-menu', 'Revis_Cleaner_callback');446 add_options_page( __('Revision Cleaner',REVISION_CLEANER_NAME), __('Revision Cleaner',REVISION_CLEANER_NAME), 'manage_options', 'revision-cleaner-control-menu', 'Revis_Cleaner_callback'); 432 447 } 433 448 function Revis_js(){ ?> … … 471 486 <?php } 472 487 function Revis_profile_fields($user){ 473 $setting = get_user_meta($user->ID,'Revis_Setting'); 474 if (!$setting[0]){ 488 while(!$setting[0]){ 475 489 Revis_new_user_action($user->ID); 490 $setting = get_user_meta($user->ID,'Revis_Setting'); 476 491 } 477 492 extract($setting[0]); 478 493 ?> 479 <h3><?php _e('Revision Cleaner', 'revision-cleaner');?></h3>494 <h3><?php _e('Revision Cleaner',REVISION_CLEANER_NAME);?></h3> 480 495 <div id="revis_no_js"><?php _e("Error:No Javascript support, can't show simple setting");?></div> 481 496 <table class="form-table"> 482 497 <tbody> 483 <tr><th><?php _e('Time Settings', 'revision-cleaner');?></th><td><p><?php _e('Revisions Last','revision-cleaner');?>484 <input id='revis_d' type='text' class="small-text" /><?php _e('day', 'revision-cleaner')?>485 <input id='revis_h' type='text' class="small-text" /><?php _e('hour', 'revision-cleaner')?></p></td></tr>486 487 <tr><th id='revis_advanced'><?php _e('Advanced Options', 'revision-cleaner');?>498 <tr><th><?php _e('Time Settings',REVISION_CLEANER_NAME);?></th><td><p><?php _e('Revisions Last',REVISION_CLEANER_NAME);?> 499 <input id='revis_d' type='text' class="small-text" /><?php _e('day',REVISION_CLEANER_NAME);?> 500 <input id='revis_h' type='text' class="small-text" /><?php _e('hour',REVISION_CLEANER_NAME);?></p></td></tr> 501 502 <tr><th id='revis_advanced'><?php _e('Advanced Options',REVISION_CLEANER_NAME);?> 488 503 <a>▼</a><a class="hidden">▲</a></th> 489 504 <td></td> … … 498 513 <tbody > 499 514 <tr valign="top"> 500 <th scope="row"><?php _e('Time Settings', 'revision-cleaner');?></th>515 <th scope="row"><?php _e('Time Settings',REVISION_CLEANER_NAME);?></th> 501 516 <td><label for="revis_interval"> 502 <?php _e('Revisions Last', 'revision-cleaner');?><input name="interval" type="text" id="revis_interval"503 value="<?php echo $interval; ?>" class="big-text"><?php _e('Seconds', 'revision-cleaner'); ?></label>517 <?php _e('Revisions Last',REVISION_CLEANER_NAME);?><input name="interval" type="text" id="revis_interval" 518 value="<?php echo $interval; ?>" class="big-text"><?php _e('Seconds',REVISION_CLEANER_NAME); ?></label> 504 519 </td> 505 520 </tr> 506 <tr><th><?php _e("Misc", 'revision-cleaner');?></th><td>507 <label for="keep_last"><input type="checkbox" name="keep_last" id="keep_last" <?php checked($keep_last, TRUE) ?> /><?php _e("Always keep the last revision", 'revision-cleaner');?></label>521 <tr><th><?php _e("Misc",REVISION_CLEANER_NAME);?></th><td> 522 <label for="keep_last"><input type="checkbox" name="keep_last" id="keep_last" <?php checked($keep_last, TRUE) ?> /><?php _e("Always keep the last revision",REVISION_CLEANER_NAME);?></label> 508 523 509 524 <br/> 510 525 511 <label for="keep_draft_revision"><input type="checkbox" name="keep_draft_revision" id="keep_draft_revision" <?php checked($keep_draft_revision, TRUE) ?> /><?php _e("Always keep draft's revisions", 'revision-cleaner');?></label>526 <label for="keep_draft_revision"><input type="checkbox" name="keep_draft_revision" id="keep_draft_revision" <?php checked($keep_draft_revision, TRUE) ?> /><?php _e("Always keep draft's revisions",REVISION_CLEANER_NAME);?></label> 512 527 </td></tr> 513 528 </tbody> -
revision-cleaner/trunk/readme.txt
r468079 r468107 4 4 Requires at least: 3.1 5 5 Tested up to: 3.2 6 Stable tag: 2.0. 16 Stable tag: 2.0.2 7 7 License: GPLv2 or later 8 8 … … 26 26 == Changelog == 27 27 28 = 2.0.2 = 29 * Add:Try to deactivate REVISION_CLEANER when it goes crazy 30 * Fix:New Administrator can't set his profile 31 * Upgrade: new option will not autoload to do things more efficient. 32 28 33 = 2.0.1 = 29 Fix Can't find Neo, I'm very sorry for any inconvenience ...34 Quick Fix Can't find Neo, I'm very sorry for any inconvenience ... 30 35 31 36 = 2.0 = -
revision-cleaner/trunk/revision-cleaner.php
r468079 r468107 7 7 Plugin URI: http://mengzhuo.org/lab/RevisionC/ 8 8 Description: Auto clean your revisions while you don't needed any more 9 Version: 2.0. 19 Version: 2.0.2 10 10 Author: Meng Zhuo 11 11 Author URI: http://mengzhuo.org … … 29 29 */ 30 30 //definition goes here... 31 define('REVISION_CLEANER_VERSION', '2.0.1'); 31 define('REVISION_CLEANER_VERSION', '2.0.2'); 32 define('REVISION_CLEANER_NAME','revision-cleaner'); 32 33 define('RevC_DEBUG',FALSE); 33 34 //definition end. 34 35 35 load_plugin_textdomain( 'revision-cleaner', false, dirname( plugin_basename( __FILE__ ) ) . '/po/');36 load_plugin_textdomain(REVISION_CLEANER_NAME, false, dirname( plugin_basename( __FILE__ ) ) . '/po/'); 36 37 37 38 // Make sure we don't expose any info if called directly [FROM AKISMET] … … 55 56 'keep_draft_revision' => TRUE 56 57 ); 57 add_user_meta( 1, 'Revis_Setting', $admin_setting);58 update_user_meta( 1, 'Revis_Setting', $admin_setting); 58 59 update_user_meta( $user_id, 'Revis_Setting', $admin_setting ); 59 60 return TRUE; … … 83 84 ); 84 85 $version = REVISION_CLEANER_VERSION; 85 $msg = __("Revision Cleaner CRAZED!", 'revision-cleaner').'<br/>'.__("Version").": $version | ";86 $msg = __("Revision Cleaner CRAZED!",REVISION_CLEANER_NAME).'<br/>'.__("Version").": $version | "; 86 87 $msg .= __("crazy_type")." :$code_id -> $addition_msg".'<br/>'; 87 wp_die($msg.$Revis_Error_ID[$code_id],__('Revision Cleaner CRAZED!','revision-cleaner')); 88 89 // try to deactivate this plugin while Crazy 90 if ( ! current_user_can('activate_plugins') ){ 91 wp_die(__('You do not have sufficient permissions to deactivate plugins for this site.')); 92 } 93 check_admin_referer('deactivate-plugin_' . REVISION_CLEANER_NAME); 94 $msg = __('Deactivating Revision cleaner....'); 95 if (deactivate_plugins(REVISION_CLEANER_NAME)){ 96 $msg .= "[".__('Completed').']<br/>'; 97 } 98 else{ 99 $msg .= "[".__('Failed').']<br/>'; 100 } 101 wp_die($msg.$Revis_Error_ID[$code_id],__('Revision Cleaner CRAZED!',REVISION_CLEANER_NAME)); 88 102 } 89 103 function Revis_save_user_profile_fields( $user_id ) { … … 121 135 'keep_draft_revision' => TRUE 122 136 ); 123 add_user_meta( 1, 'Revis_Setting', $admin_setting);137 update_user_meta( 1, 'Revis_Setting', $admin_setting); 124 138 } 125 139 … … 156 170 if (!$setting_array){ 157 171 Revis_new_user_action($user_id); 172 $setting_array[0] = get_user_meta($user_id,'Revis_Setting'); 158 173 } 159 174 extract($setting_array[0]); … … 227 242 'version' => REVISION_CLEANER_VERSION 228 243 ); 229 add_option('Revis_Setting',$initial_array,'',' yes');244 add_option('Revis_Setting',$initial_array,'','no'); 230 245 231 246 //initial other user's setting … … 277 292 'version' => REVISION_CLEANER_VERSION 278 293 ); 279 add_option('Revis_Setting',$initial_array,'',' yes');280 add_option('Revis_Cleaned',0,'',' yes');294 add_option('Revis_Setting',$initial_array,'','no'); 295 add_option('Revis_Cleaned',0,'','no'); 281 296 return TRUE; 282 297 } … … 334 349 <div class="wrap"> 335 350 <div id="icon-options-general" class="icon32"><br></div> 336 <h2><?php _e('Revision Cleaner', 'revision-cleaner'); ?></h2>351 <h2><?php _e('Revision Cleaner',REVISION_CLEANER_NAME); ?></h2> 337 352 <form method='post' action=''> 338 353 <?php if (!$multi_user && current_user_can('administrator')){ … … 349 364 } 350 365 ?> 351 <h3><?php _e('Global Settings', 'revision-cleaner');?></h3>366 <h3><?php _e('Global Settings',REVISION_CLEANER_NAME);?></h3> 352 367 <table class="form-table"> 353 368 <tbody> 354 <tr><th><?php _e('Multi-Users', 'revision-cleaner');?></th>369 <tr><th><?php _e('Multi-Users',REVISION_CLEANER_NAME);?></th> 355 370 <td> 356 <label for="revis_multiuser"><input type="checkbox" name="multi_user" id="revis_multiuser" <?php checked($Revis_Setting['multi_user'], TRUE) ?> /><?php _e("Allow each user set their own interval", 'revision-cleaner');?></label>371 <label for="revis_multiuser"><input type="checkbox" name="multi_user" id="revis_multiuser" <?php checked($Revis_Setting['multi_user'], TRUE) ?> /><?php _e("Allow each user set their own interval",REVISION_CLEANER_NAME);?></label> 357 372 <?php 358 373 if ($multi_user && $current_user->data->ID == 1){ 359 374 $blog_admin_profile_url = site_url().'/wp-admin/profile.php#revis_advanced'; 360 375 echo '<p>'; 361 printf(__("As Multi-users on, You can set your interval at <a href='%s'>your profile</a>", 'revision-cleaner'), $blog_admin_profile_url);376 printf(__("As Multi-users on, You can set your interval at <a href='%s'>your profile</a>",REVISION_CLEANER_NAME), $blog_admin_profile_url); 362 377 echo '</p>'; }?> 363 378 </td></tr> 364 379 </tbody> 365 380 </table> 366 <h3><?php _e('Statistic', 'revision-cleaner');?></h3>381 <h3><?php _e('Statistic',REVISION_CLEANER_NAME);?></h3> 367 382 <table class="form-table"> 368 383 <tbody> 369 <tr valign="top"><th scope="row"><?php _e('Extant Revision', 'revision-cleaner');?></th><td><?php echo $Revis_revisions_now;?></td></tr>370 <tr valign="top"><th scope="row"><?php _e('Cleaned Revision', 'revision-cleaner');?></th><td><?php echo $Revis_Cleaned;?></td></tr>384 <tr valign="top"><th scope="row"><?php _e('Extant Revision',REVISION_CLEANER_NAME);?></th><td><?php echo $Revis_revisions_now;?></td></tr> 385 <tr valign="top"><th scope="row"><?php _e('Cleaned Revision',REVISION_CLEANER_NAME);?></th><td><?php echo $Revis_Cleaned;?></td></tr> 371 386 </tbody> 372 387 </table> 373 388 <h3 id='revis_users_overview'> 374 <?php _e('Users Setting Overview', 'revision-cleaner');?>389 <?php _e('Users Setting Overview',REVISION_CLEANER_NAME);?> 375 390 <a>▼</a><a class="hidden">▲</a> 376 391 </h3> … … 379 394 <thead><tr> 380 395 <th class="manage-column column-username"><?php _e('Username');?></th> 381 <th class="manage-column num" ><?php _e('Extant Revision', 'revision-cleaner');?></th>382 <th class="manage-column num column-posts"><?php _e('Interval', 'revision-cleaner');?></th>383 <th class="manage-column column-role"><?php _e("Keep draft's", 'revision-cleaner');?></th>384 <th class="manage-column column-role"><?php _e("Keep latest", 'revision-cleaner');?></th>396 <th class="manage-column num" ><?php _e('Extant Revision',REVISION_CLEANER_NAME);?></th> 397 <th class="manage-column num column-posts"><?php _e('Interval',REVISION_CLEANER_NAME);?></th> 398 <th class="manage-column column-role"><?php _e("Keep draft's",REVISION_CLEANER_NAME);?></th> 399 <th class="manage-column column-role"><?php _e("Keep latest",REVISION_CLEANER_NAME);?></th> 385 400 </tr></thead><tbody> 386 401 <?php … … 429 444 } 430 445 function Revis_Cleaner_menu(){ 431 add_options_page( __('Revision Cleaner', 'revision-cleaner'), __('Revision Cleaner','revision-cleaner'), 'manage_options', 'revision-cleaner-control-menu', 'Revis_Cleaner_callback');446 add_options_page( __('Revision Cleaner',REVISION_CLEANER_NAME), __('Revision Cleaner',REVISION_CLEANER_NAME), 'manage_options', 'revision-cleaner-control-menu', 'Revis_Cleaner_callback'); 432 447 } 433 448 function Revis_js(){ ?> … … 471 486 <?php } 472 487 function Revis_profile_fields($user){ 473 $setting = get_user_meta($user->ID,'Revis_Setting'); 474 if (!$setting[0]){ 488 while(!$setting[0]){ 475 489 Revis_new_user_action($user->ID); 490 $setting = get_user_meta($user->ID,'Revis_Setting'); 476 491 } 477 492 extract($setting[0]); 478 493 ?> 479 <h3><?php _e('Revision Cleaner', 'revision-cleaner');?></h3>494 <h3><?php _e('Revision Cleaner',REVISION_CLEANER_NAME);?></h3> 480 495 <div id="revis_no_js"><?php _e("Error:No Javascript support, can't show simple setting");?></div> 481 496 <table class="form-table"> 482 497 <tbody> 483 <tr><th><?php _e('Time Settings', 'revision-cleaner');?></th><td><p><?php _e('Revisions Last','revision-cleaner');?>484 <input id='revis_d' type='text' class="small-text" /><?php _e('day', 'revision-cleaner')?>485 <input id='revis_h' type='text' class="small-text" /><?php _e('hour', 'revision-cleaner')?></p></td></tr>486 487 <tr><th id='revis_advanced'><?php _e('Advanced Options', 'revision-cleaner');?>498 <tr><th><?php _e('Time Settings',REVISION_CLEANER_NAME);?></th><td><p><?php _e('Revisions Last',REVISION_CLEANER_NAME);?> 499 <input id='revis_d' type='text' class="small-text" /><?php _e('day',REVISION_CLEANER_NAME);?> 500 <input id='revis_h' type='text' class="small-text" /><?php _e('hour',REVISION_CLEANER_NAME);?></p></td></tr> 501 502 <tr><th id='revis_advanced'><?php _e('Advanced Options',REVISION_CLEANER_NAME);?> 488 503 <a>▼</a><a class="hidden">▲</a></th> 489 504 <td></td> … … 498 513 <tbody > 499 514 <tr valign="top"> 500 <th scope="row"><?php _e('Time Settings', 'revision-cleaner');?></th>515 <th scope="row"><?php _e('Time Settings',REVISION_CLEANER_NAME);?></th> 501 516 <td><label for="revis_interval"> 502 <?php _e('Revisions Last', 'revision-cleaner');?><input name="interval" type="text" id="revis_interval"503 value="<?php echo $interval; ?>" class="big-text"><?php _e('Seconds', 'revision-cleaner'); ?></label>517 <?php _e('Revisions Last',REVISION_CLEANER_NAME);?><input name="interval" type="text" id="revis_interval" 518 value="<?php echo $interval; ?>" class="big-text"><?php _e('Seconds',REVISION_CLEANER_NAME); ?></label> 504 519 </td> 505 520 </tr> 506 <tr><th><?php _e("Misc", 'revision-cleaner');?></th><td>507 <label for="keep_last"><input type="checkbox" name="keep_last" id="keep_last" <?php checked($keep_last, TRUE) ?> /><?php _e("Always keep the last revision", 'revision-cleaner');?></label>521 <tr><th><?php _e("Misc",REVISION_CLEANER_NAME);?></th><td> 522 <label for="keep_last"><input type="checkbox" name="keep_last" id="keep_last" <?php checked($keep_last, TRUE) ?> /><?php _e("Always keep the last revision",REVISION_CLEANER_NAME);?></label> 508 523 509 524 <br/> 510 525 511 <label for="keep_draft_revision"><input type="checkbox" name="keep_draft_revision" id="keep_draft_revision" <?php checked($keep_draft_revision, TRUE) ?> /><?php _e("Always keep draft's revisions", 'revision-cleaner');?></label>526 <label for="keep_draft_revision"><input type="checkbox" name="keep_draft_revision" id="keep_draft_revision" <?php checked($keep_draft_revision, TRUE) ?> /><?php _e("Always keep draft's revisions",REVISION_CLEANER_NAME);?></label> 512 527 </td></tr> 513 528 </tbody>
Note: See TracChangeset
for help on using the changeset viewer.