原文:《Show baby’s age / 一个显示某人多大的wordpress插件》,v0.3下载地址:babyage.0.3
还是08年的上传到wp,一直未改动,都忘记有这么一个玩意了。昨晚有个用户发邮件问我还在维护吗?新版本的wp不能使用了。
便花了点时间做了更新,在wp 3.3.1下正常使用。改代码花了 5分钟,上传到wp花了半小时。忘记怎么更新了。
==============================================
以下内容来自wp官方(http://wordpress.org/extend/plugins/about/svn/):
Create a local directory on your machine to house
a copy of the repository.
$ mkdir my-local-dir
Check out the repository
$ svn co http://plugins.svn.wordpress.org/your-plugin-name my-local-dir
A my-local-dir/trunk
A my-local-dir/branches
A my-local-dir/tags
Checked out revision 11325.As you can see, subversion has added ( “A” for “add” )
all of the directories from the central repository to
your local copy.
Copy the plugin files to the local copy.
Put everything in the trunk/ directory for now.
$ cd my-local-dir/
my-local-dir/$ cp ~/my-plugin.php trunk/my-plugin.php
my-local-dir/$ cp ~/readme.txt trunk/readme.txtLet subversion know you want to add those new files
back into the central repository.
my-local-dir/$ svn add trunk/*
A trunk/my-plugin.php
A trunk/readme.txtNow check in the changes back to the central repository.
Give a message to the check in.
my-local-dir/$ svn ci -m ‘Adding first version of my plugin’
Adding trunk/my-plugin.php
Adding trunk/readme.txt
Transmitting file data .
Committed revision 11326.All done!