Changeset 330158
- Timestamp:
- 01/08/2011 04:19:56 PM (15 years ago)
- Location:
- wpcleaner
- Files:
-
- 2 edited
- 6 copied
-
tags/1.1.3 (copied) (copied from wpcleaner/trunk)
-
tags/1.1.3/readme.txt (copied) (copied from wpcleaner/trunk/readme.txt) (3 diffs)
-
tags/1.1.3/wpcleaner-zh_CN.mo (copied) (copied from wpcleaner/trunk/wpcleaner-zh_CN.mo)
-
tags/1.1.3/wpcleaner-zh_CN.po (copied) (copied from wpcleaner/trunk/wpcleaner-zh_CN.po)
-
tags/1.1.3/wpcleaner.php (copied) (copied from wpcleaner/trunk/wpcleaner.php) (6 diffs)
-
tags/1.1.3/wpcleaner.pot (copied) (copied from wpcleaner/trunk/wpcleaner.pot)
-
trunk/readme.txt (modified) (3 diffs)
-
trunk/wpcleaner.php (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
wpcleaner/tags/1.1.3/readme.txt
r309509 r330158 6 6 Tags: cleaner, delete, optimize, manager 7 7 Requires at least: 2.5 8 Tested up to: 3.0. 19 Stable tag: 1.1. 28 Tested up to: 3.0.4 9 Stable tag: 1.1.3 10 10 11 11 == Description == … … 21 21 22 22 == Changelog == 23 2011-01-09 v1.1.3 24 Fix script cannot work when php 'short open tag' is on. 25 23 26 2010-11-09 v1.1.2 24 27 Fix user header already posted in redirection. … … 35 38 36 39 中文更新说明: 40 2011-01-09 v1.1.3 41 修正当php选项short open tag为on时脚本无法正常解析。 42 37 43 2010-11-09 v1.1.2 38 44 修正部分用户在重定向时产生头已发送的错误。 -
wpcleaner/tags/1.1.3/wpcleaner.php
r309509 r330158 5 5 Description: 删除不需要的文章,节省空间,提高速度。delete posts which don't need any more,keep database clean and fast. 6 6 Author: JiangMiao 7 Version: 1.1. 27 Version: 1.1.3 8 8 Author URI: http://www.jiangmiao.org/blog 9 9 */ … … 58 58 function revisionCleanerDo(type,status,ob) 59 59 { 60 if(!confirm("<? =__("Are you sure", "wpcleaner") ?> \""+ob.value+"\"?"))60 if(!confirm("<?php echo __("Are you sure", "wpcleaner") ?> \""+ob.value+"\"?")) 61 61 return; 62 62 ob.form.post_type.value=type; … … 70 70 <div id="icon-options-general" class="icon32"><br /></div> 71 71 <h2>WP Cleaner</h2> 72 <? 72 <?php 73 73 if(isset($_POST['action'])) 74 74 { … … 81 81 echo "<form method=\"post\" action=\"{$_SERVER['REQUEST_URI']}\">"; 82 82 ?> 83 <h3><? =__("Tips","wpcleaner")?></h3><p>84 <? =__("This operation will be delete useless revision and cannot be rollback, please <b>backup</b> before using it, Thank you :), The plugin has protect mechanism, so it cannot effect any published post ever. be free in using it.", "wpcleaner");?>83 <h3><?php echo __("Tips","wpcleaner")?></h3><p> 84 <?php echo __("This operation will be delete useless revision and cannot be rollback, please <b>backup</b> before using it, Thank you :), The plugin has protect mechanism, so it cannot effect any published post ever. be free in using it.", "wpcleaner");?> 85 85 </p> 86 <h3><? =__("Posts Stats","wpcleaner");?></h3>86 <h3><?php echo __("Posts Stats","wpcleaner");?></h3> 87 87 <form> 88 88 <table class="form-table" style="width:auto"> 89 <tr><th style="width:6em"><? = __("Posts Type","wpcleaner");?></th><th style="width:6em"><?= __("Posts Status","wpcleaner");?></th><th style="width:6em"><?=__("Posts count","wpcleaner")?></th></tr>90 <? 89 <tr><th style="width:6em"><?php echo __("Posts Type","wpcleaner");?></th><th style="width:6em"><?php echo __("Posts Status","wpcleaner");?></th><th style="width:6em"><?php echo __("Posts count","wpcleaner")?></th></tr> 90 <?php 91 91 92 92 foreach($result as $row) … … 113 113 ?> 114 114 <td> 115 <input class="button-primary" type="button" value="<? = __("Delete All", "wpcleaner")." {$postType}-{$postStatus}({$row->c})";?>" style="font-size:12px !important;font-weight:normal" onclick="revisionCleanerDo('<?= $row->post_type?>','<?=$row->post_status?>',this)"/>115 <input class="button-primary" type="button" value="<?php echo __("Delete All", "wpcleaner")." {$postType}-{$postStatus}({$row->c})";?>" style="font-size:12px !important;font-weight:normal" onclick="revisionCleanerDo('<?php echo $row->post_type?>','<?php echo $row->post_status?>',this)"/> 116 116 </td> 117 <? 117 <?php 118 118 } 119 119 } … … 131 131 } 132 132 ?> 133 <div><? printf(__("%d broken links","wpcleaner"), $count);?></div>133 <div><?php printf(__("%d broken links","wpcleaner"), $count);?></div> 134 134 <input type="hidden" name="post_type" value=""/> 135 135 <input type="hidden" name="post_status" value=""/> 136 136 <input type="hidden" name="post_name" value=""/> 137 137 <input type="hidden" name="action" value="update"/> 138 <input class="button-primary" type="button" value="<? =__("Delete all revisions","wpcleaner");?>" style="font-size:12px !important;font-weight:normal" onclick="revisionCleanerDo('revision','',this)"/>139 <input class="button-primary" type="button" value="<? =__("Delete all drafts","wpcleaner");?>" style="font-size:12px !important;font-weight:normal" onclick="revisionCleanerDo('','draft',this)"/>140 <input class="button-primary" type="button" value="<? =__("Delete all revisions and drafts", "wpcleaner");?>" style="font-size:12px !important;font-weight:normal" onclick="revisionCleanerDo('all','all',this)"/>138 <input class="button-primary" type="button" value="<?php echo __("Delete all revisions","wpcleaner");?>" style="font-size:12px !important;font-weight:normal" onclick="revisionCleanerDo('revision','',this)"/> 139 <input class="button-primary" type="button" value="<?php echo __("Delete all drafts","wpcleaner");?>" style="font-size:12px !important;font-weight:normal" onclick="revisionCleanerDo('','draft',this)"/> 140 <input class="button-primary" type="button" value="<?php echo __("Delete all revisions and drafts", "wpcleaner");?>" style="font-size:12px !important;font-weight:normal" onclick="revisionCleanerDo('all','all',this)"/> 141 141 </div> 142 142 </form> 143 143 </div> 144 <? 144 <?php 145 145 } -
wpcleaner/trunk/readme.txt
r309509 r330158 6 6 Tags: cleaner, delete, optimize, manager 7 7 Requires at least: 2.5 8 Tested up to: 3.0. 19 Stable tag: 1.1. 28 Tested up to: 3.0.4 9 Stable tag: 1.1.3 10 10 11 11 == Description == … … 21 21 22 22 == Changelog == 23 2011-01-09 v1.1.3 24 Fix script cannot work when php 'short open tag' is on. 25 23 26 2010-11-09 v1.1.2 24 27 Fix user header already posted in redirection. … … 35 38 36 39 中文更新说明: 40 2011-01-09 v1.1.3 41 修正当php选项short open tag为on时脚本无法正常解析。 42 37 43 2010-11-09 v1.1.2 38 44 修正部分用户在重定向时产生头已发送的错误。 -
wpcleaner/trunk/wpcleaner.php
r309509 r330158 5 5 Description: 删除不需要的文章,节省空间,提高速度。delete posts which don't need any more,keep database clean and fast. 6 6 Author: JiangMiao 7 Version: 1.1. 27 Version: 1.1.3 8 8 Author URI: http://www.jiangmiao.org/blog 9 9 */ … … 58 58 function revisionCleanerDo(type,status,ob) 59 59 { 60 if(!confirm("<? =__("Are you sure", "wpcleaner") ?> \""+ob.value+"\"?"))60 if(!confirm("<?php echo __("Are you sure", "wpcleaner") ?> \""+ob.value+"\"?")) 61 61 return; 62 62 ob.form.post_type.value=type; … … 70 70 <div id="icon-options-general" class="icon32"><br /></div> 71 71 <h2>WP Cleaner</h2> 72 <? 72 <?php 73 73 if(isset($_POST['action'])) 74 74 { … … 81 81 echo "<form method=\"post\" action=\"{$_SERVER['REQUEST_URI']}\">"; 82 82 ?> 83 <h3><? =__("Tips","wpcleaner")?></h3><p>84 <? =__("This operation will be delete useless revision and cannot be rollback, please <b>backup</b> before using it, Thank you :), The plugin has protect mechanism, so it cannot effect any published post ever. be free in using it.", "wpcleaner");?>83 <h3><?php echo __("Tips","wpcleaner")?></h3><p> 84 <?php echo __("This operation will be delete useless revision and cannot be rollback, please <b>backup</b> before using it, Thank you :), The plugin has protect mechanism, so it cannot effect any published post ever. be free in using it.", "wpcleaner");?> 85 85 </p> 86 <h3><? =__("Posts Stats","wpcleaner");?></h3>86 <h3><?php echo __("Posts Stats","wpcleaner");?></h3> 87 87 <form> 88 88 <table class="form-table" style="width:auto"> 89 <tr><th style="width:6em"><? = __("Posts Type","wpcleaner");?></th><th style="width:6em"><?= __("Posts Status","wpcleaner");?></th><th style="width:6em"><?=__("Posts count","wpcleaner")?></th></tr>90 <? 89 <tr><th style="width:6em"><?php echo __("Posts Type","wpcleaner");?></th><th style="width:6em"><?php echo __("Posts Status","wpcleaner");?></th><th style="width:6em"><?php echo __("Posts count","wpcleaner")?></th></tr> 90 <?php 91 91 92 92 foreach($result as $row) … … 113 113 ?> 114 114 <td> 115 <input class="button-primary" type="button" value="<? = __("Delete All", "wpcleaner")." {$postType}-{$postStatus}({$row->c})";?>" style="font-size:12px !important;font-weight:normal" onclick="revisionCleanerDo('<?= $row->post_type?>','<?=$row->post_status?>',this)"/>115 <input class="button-primary" type="button" value="<?php echo __("Delete All", "wpcleaner")." {$postType}-{$postStatus}({$row->c})";?>" style="font-size:12px !important;font-weight:normal" onclick="revisionCleanerDo('<?php echo $row->post_type?>','<?php echo $row->post_status?>',this)"/> 116 116 </td> 117 <? 117 <?php 118 118 } 119 119 } … … 131 131 } 132 132 ?> 133 <div><? printf(__("%d broken links","wpcleaner"), $count);?></div>133 <div><?php printf(__("%d broken links","wpcleaner"), $count);?></div> 134 134 <input type="hidden" name="post_type" value=""/> 135 135 <input type="hidden" name="post_status" value=""/> 136 136 <input type="hidden" name="post_name" value=""/> 137 137 <input type="hidden" name="action" value="update"/> 138 <input class="button-primary" type="button" value="<? =__("Delete all revisions","wpcleaner");?>" style="font-size:12px !important;font-weight:normal" onclick="revisionCleanerDo('revision','',this)"/>139 <input class="button-primary" type="button" value="<? =__("Delete all drafts","wpcleaner");?>" style="font-size:12px !important;font-weight:normal" onclick="revisionCleanerDo('','draft',this)"/>140 <input class="button-primary" type="button" value="<? =__("Delete all revisions and drafts", "wpcleaner");?>" style="font-size:12px !important;font-weight:normal" onclick="revisionCleanerDo('all','all',this)"/>138 <input class="button-primary" type="button" value="<?php echo __("Delete all revisions","wpcleaner");?>" style="font-size:12px !important;font-weight:normal" onclick="revisionCleanerDo('revision','',this)"/> 139 <input class="button-primary" type="button" value="<?php echo __("Delete all drafts","wpcleaner");?>" style="font-size:12px !important;font-weight:normal" onclick="revisionCleanerDo('','draft',this)"/> 140 <input class="button-primary" type="button" value="<?php echo __("Delete all revisions and drafts", "wpcleaner");?>" style="font-size:12px !important;font-weight:normal" onclick="revisionCleanerDo('all','all',this)"/> 141 141 </div> 142 142 </form> 143 143 </div> 144 <? 144 <?php 145 145 }
Note: See TracChangeset
for help on using the changeset viewer.