WordPress: Enable the theme editor for Multisite

March 25, 2013

Let me start out by saying that I do not recommend using this method. I am writing it down to remember later if needed. There are some very good security reasons why editing themes is not allowed in WordPress multisite. In this particular instance the theme editor was required as there was literally no other

WordPress: Add action links to plugin listing

February 16, 2013

Have you ever seen a WordPress plugin with action links in the plugins list and wondered how it was accomplished? It is actually quite simple to do. WordPress has a hook for that. Deep within the bowels of WordPress you will find a filter named plugin_action_links. This filter accepts an array containing a list of

First Experiences with WebMatrix 2 and Windows Azure Website

February 16, 2013

WebMatrix is a free web development tool produced by Microsoft. WebMatrix is a complete development environment that not only provides a code editor, it also creates a new private instance of IIS Express to debug your project in, and downloads any dependencies your project may need, I.E. SQL Server Express, MySQL, PHP, etc. I was

Count lines of code in files recursively

January 26, 2013

If you are attempting to find a count of the total lines of code in files in a directory recursively from Linux or Mac OS X the following command will do what you want. This particular command prints out all lines contained in any file with a .php extension, then counts the number of lines

Bash: Recursively adding an extension to all files without extensions

January 16, 2013

While attempting to import an existing website to WordPress I noticed that the local copy of the website I had created with wget –mirror did not have any file extensions. This makes sense because the URL did not have an extension in it. The HTML import tool requires and extension however. The following command will