I gave a new client a totally wrong answer the other day. Well, it was right as far as I always knew. Scheduled posts have been a bane to a bunch of blogs I’ve seen. I’d thought that there were bugs...
This was posted to the wp-hackers list by Frank Bültge and I didn’t want to lose it. Here is how to add a new menu item to the admin bar: function wp_codex_search_form() { global $wp_admin_bar, $wpdb; if ( !is_super_admin() || !is_admin_bar_showing()...
AKA: Choosing and setting safe file permissions for a WordPress install. If you have ever watched a WordPress security presentation, you’ve heard the advice: Generally speaking, directories should be 755 and files should be 644. But the presenter never tells...
This is a simple issue that trips me up every now and then. Let’s say you have a directory of a couple dozen themes all in zip files. It would be a pain to type “unzip filename.zip” for every single one,...
Having appended a line to /etc/hosts through BASH, what I really wanted to do, was add it via PERL. The basic operation would be the same: load a text file into a single variable, search a string for text, and if...
It is easy to append a line to a file in BASH. I wrote a short script this morning that I can use to add a single line to my servers /etc/hosts pointing any domain I want at the loopback IP...
There was a long rant in the wp-testers mailing list today talking about how we weren’t helpful to someone who was getting a “500 Internal Server Error” message after installing WordPress. After complaining about our helpfulness and some bragging about past...
OK So, most theme developers are aware of what the loop is… it displays your WordPress posts. The one interesting thing about the loop is that it bounces in and out of the php and straight html output. So, most of...
The process is EXTREMELY simple. One line to install SVN, two to create the repository, and one to run the daemon: yum install subversion.i386 mkdir /svn svnadmin create /svn/my-repo/ svnserve -d Here’s what my results produced (The first line confirms I...