目前使用的robots.txt


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/www/_blog.bluecygnet.com/wp-content/plugins/wp-syntax/wp-syntax.php on line 380
1
2
3
4
5
6
7
8
9
10
11
12
13
14
User-agent: *
Disallow: /wp-admin
Disallow: /wp-includes
Disallow: /wp-content/plugins
Disallow: /wp-content/cache
Disallow: /wp-content/themes
Disallow: /feed/
Disallow: /comments/feed
Disallow: /trackback/
Allow: /wp-content/uploads
 
# BEGIN XML-SITEMAP-PLUGIN
Sitemap: <a href="http://blog.bluecygnet.com/sitemap.xml.gz">http://blog.bluecygnet.com/sitemap.xml.gz</a>
# END XML-SITEMAP-PLUGIN

[wordpress]update to 2.3.3

这次的升级赶的比较及时,登陆上后台,就看到了2.3.3的发布信息(在官方发布后的2个小时左右吧)。
严格说来,这次的升级对于个人使用的用户,其实并不是十分急需的。
A flaw was found in our XML-RPC implementation such that a specially crafted request would allow any valid user to edit posts of any other user on that blog.
既:一个特定的请求会导致任何有效的用户在这个博客上修改其他任何用户发表的日志。
这个问题,不是什么大的问题。
顺手升级了。

接近无聊的动作记录:给blog加上版本信息


Warning: WP_Syntax::substituteToken(): Argument #1 ($match) must be passed by reference, value given in /home/www/_blog.bluecygnet.com/wp-content/plugins/wp-syntax/wp-syntax.php on line 380

这个动作纯属无聊的折腾,记录一下:

1
2
3
4
5
6
7
8
9
10
11
<script type="text/javascript">
document.body.oncopy=function(){
 event.returnValue=false;
 var t=document.selection.createRange().text;
<?php
  echo "var s=\"本文来源于 It\'s My Life ".get_settings('home');
  echo " , 原文地址:".the_permalink()."\";";
?>
 clipboardData.setData('Text','\r\n'+t+'\r\n'+s+'\r\n');
}
</script>

将此段代码加在目前使用的模版文件中的,sigle.php的最后部分(不要加在最前面,会出现JS调用document.body错误,因为当时body对象还没有被声明使用)。

[wordpress]WordPress的tag增加及目前使用的插件调整

wordpress升级到2.3x已经有几个月了,看到了新的tag内置功能,但一直都没有进行模版调整,之前是使用的Jerome’s Keywords,因为是后安装了,所以一直也没有过于使用。
今天根据wordpress的文件,在目前使用的PhoenixBlue模版上进行了调整。
1、在single.php文件中,加入了本文tag 的显示

< ?php the_tags(‘< h3 >Tags< /h3 >   ‘, ‘ ‘ , ”); ?>

2、在sidebar.php文件中,加入了本文tag cloud的显示

< ?php wp_tag_cloud(); ?>

其它的调整,对整个wordpress的插件进行了精简和更新,目前使用的插件为:
akismet
delicious-bookmark-this
google-sitemap-generator
podpress
simple-tags
WP23RP
wp-cache
wp-db-backup

[wordpress]update to 2.2.1

升级的信息已经出来有4天了,最近手头有点忙事儿,拖到了今天才做。
本次的升级主要是bug修复和安全问题修正,涉及的有:

  • Atom feed 验证修正
  • XML-RPC 修正
  • Widget 向后兼容修正
  • Widget 在 IE7 下的布局修正
  • 页面和文本 Widget 增强
  • PHPMailer 的远程 Shell 注入(安全问题)
  • XML-RPC 的远程 SQL 注入(安全问题)
  • 默认主题中未转义的属性(安全问题)

升级的时候,只要将2.2.1的新文件直接覆盖就可以了。(注:原来的是2.2的)