I always laugh at sites that have “old” copyright information on them and I almost forgot to update mine.
No-longer shall I be doing that with thanks to PHP´s little helper in form of the following one-line (I call it) “New Year Update Copyright script” in PHP:
< ?php echo date("Y") ?>
What it does is quite obvious: it outputs the current year, so for instance you could have it say:
(c) 2006 - (php block here)
this would render (c) 2006 - 2008
- hope this helps anyone.
Now as I look at this issue, I wonder if I was smart enough to build that into all my themes. If not, I got some revising to do after I have finished my next exam in January (11th).
Update: bleh I put
< ?php the_time('Y'); ?>
in pretty much all my themes, which is stupid I fear - but for now it is noted on my to-do list and will be sorted out with the next wave of updates!
Update: Lorelle put the_time(); too, so I guess I might as well leave it like that.
If you enjoyed this post, make sure you subscribe to my RSS feed!
Related posts:
- Show code on wordpress css Hi, one of the people commenting here asked for a...
- Happy New Year - translation news Happy New Year everyone, I have some interesting news for...
- Wordpress 2.3.2 security update Hey everyone, just 14 hours ago another essential Wordpress Security...
- 22 years now Hey all, in case you wondered why the 21 from...
- Install Coppermine SVN (or upgrade/update) Uploading and Installing Coppermine is really is a time-consuming task...
Tagged with: 2008 • code • copyright • new year • php • year




















3 Comments
Jump to comment form | comments rss [?] | trackback uri [?]