Plugin Directory

Changeset 330158


Ignore:
Timestamp:
01/08/2011 04:19:56 PM (15 years ago)
Author:
jiangmiao
Message:

修正当php选项short open tag为on时脚本无法正常解析。

Location:
wpcleaner
Files:
2 edited
6 copied

Legend:

Unmodified
Added
Removed
  • wpcleaner/tags/1.1.3/readme.txt

    r309509 r330158  
    66Tags: cleaner, delete, optimize, manager
    77Requires at least: 2.5
    8 Tested up to: 3.0.1
    9 Stable tag: 1.1.2
     8Tested up to: 3.0.4
     9Stable tag: 1.1.3
    1010
    1111== Description ==
     
    2121
    2222== Changelog ==
     232011-01-09 v1.1.3
     24  Fix script cannot work when php 'short open tag' is on.
     25
    23262010-11-09 v1.1.2
    2427  Fix user header already posted in redirection.
     
    3538
    3639中文更新说明:
     402011-01-09 v1.1.3
     41  修正当php选项short open tag为on时脚本无法正常解析。
     42
    37432010-11-09 v1.1.2
    3844  修正部分用户在重定向时产生头已发送的错误。
  • wpcleaner/tags/1.1.3/wpcleaner.php

    r309509 r330158  
    55Description: 删除不需要的文章,节省空间,提高速度。delete posts which don't need any more,keep database clean and fast.
    66Author:  JiangMiao
    7 Version: 1.1.2
     7Version: 1.1.3
    88Author URI: http://www.jiangmiao.org/blog
    99 */
     
    5858function revisionCleanerDo(type,status,ob)
    5959{
    60   if(!confirm("<?= __("Are you sure", "wpcleaner") ?> \""+ob.value+"\"?"))
     60  if(!confirm("<?php echo __("Are you sure", "wpcleaner") ?> \""+ob.value+"\"?"))
    6161        return;
    6262    ob.form.post_type.value=type;
     
    7070<div id="icon-options-general" class="icon32"><br /></div>
    7171<h2>WP Cleaner</h2>
    72 <?
     72<?php
    7373    if(isset($_POST['action']))
    7474    {
     
    8181  echo "<form method=\"post\" action=\"{$_SERVER['REQUEST_URI']}\">";
    8282?>
    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");?>
    8585</p>
    86   <h3><?= __("Posts Stats","wpcleaner");?></h3>
     86  <h3><?php echo __("Posts Stats","wpcleaner");?></h3>
    8787<form>
    8888<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
    9191
    9292    foreach($result as $row)
     
    113113?>
    114114<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)"/>
    116116</td>
    117 <?
     117<?php
    118118        }
    119119    }
     
    131131    }
    132132?>
    133   <div><? printf(__("%d broken links","wpcleaner"), $count);?></div>
     133  <div><?php printf(__("%d broken links","wpcleaner"), $count);?></div>
    134134<input type="hidden" name="post_type" value=""/>
    135135<input type="hidden" name="post_status" value=""/>
    136136<input type="hidden" name="post_name" value=""/>
    137137<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)"/>
    141141</div>
    142142</form>
    143143</div>
    144 <?
     144<?php
    145145}
  • wpcleaner/trunk/readme.txt

    r309509 r330158  
    66Tags: cleaner, delete, optimize, manager
    77Requires at least: 2.5
    8 Tested up to: 3.0.1
    9 Stable tag: 1.1.2
     8Tested up to: 3.0.4
     9Stable tag: 1.1.3
    1010
    1111== Description ==
     
    2121
    2222== Changelog ==
     232011-01-09 v1.1.3
     24  Fix script cannot work when php 'short open tag' is on.
     25
    23262010-11-09 v1.1.2
    2427  Fix user header already posted in redirection.
     
    3538
    3639中文更新说明:
     402011-01-09 v1.1.3
     41  修正当php选项short open tag为on时脚本无法正常解析。
     42
    37432010-11-09 v1.1.2
    3844  修正部分用户在重定向时产生头已发送的错误。
  • wpcleaner/trunk/wpcleaner.php

    r309509 r330158  
    55Description: 删除不需要的文章,节省空间,提高速度。delete posts which don't need any more,keep database clean and fast.
    66Author:  JiangMiao
    7 Version: 1.1.2
     7Version: 1.1.3
    88Author URI: http://www.jiangmiao.org/blog
    99 */
     
    5858function revisionCleanerDo(type,status,ob)
    5959{
    60   if(!confirm("<?= __("Are you sure", "wpcleaner") ?> \""+ob.value+"\"?"))
     60  if(!confirm("<?php echo __("Are you sure", "wpcleaner") ?> \""+ob.value+"\"?"))
    6161        return;
    6262    ob.form.post_type.value=type;
     
    7070<div id="icon-options-general" class="icon32"><br /></div>
    7171<h2>WP Cleaner</h2>
    72 <?
     72<?php
    7373    if(isset($_POST['action']))
    7474    {
     
    8181  echo "<form method=\"post\" action=\"{$_SERVER['REQUEST_URI']}\">";
    8282?>
    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");?>
    8585</p>
    86   <h3><?= __("Posts Stats","wpcleaner");?></h3>
     86  <h3><?php echo __("Posts Stats","wpcleaner");?></h3>
    8787<form>
    8888<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
    9191
    9292    foreach($result as $row)
     
    113113?>
    114114<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)"/>
    116116</td>
    117 <?
     117<?php
    118118        }
    119119    }
     
    131131    }
    132132?>
    133   <div><? printf(__("%d broken links","wpcleaner"), $count);?></div>
     133  <div><?php printf(__("%d broken links","wpcleaner"), $count);?></div>
    134134<input type="hidden" name="post_type" value=""/>
    135135<input type="hidden" name="post_status" value=""/>
    136136<input type="hidden" name="post_name" value=""/>
    137137<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)"/>
    141141</div>
    142142</form>
    143143</div>
    144 <?
     144<?php
    145145}
Note: See TracChangeset for help on using the changeset viewer.