Apparently WordPress has it’s own magic quotes. It is not included everywhere so you need to check if the function which WordPress uses exists.
More details in the stack overflow post.
A Log of Coding Solutions
by Webhead
Apparently WordPress has it’s own magic quotes. It is not included everywhere so you need to check if the function which WordPress uses exists.
More details in the stack overflow post.
by Webhead
Today I realized I needed a reliable web host that I can use for development purposes. Either for demoing to clients or testing things out, it needed to be online, free (because I wouldn’t use it for production), and not go out of business.
Doing some research these are the companies I came across:
On a WordPress forum thread one of the comments suggested Byethost. It’s free, seems to offer a ton of power and space.
http://byethost.com/index.php/free-hosting
I don’t know too much about these guys, sorry.
http://www.zymic.com/free-web-hosting/
This is probably the Facebook for coders. My first impression of Koding is that it seems to accomplish what GitHub is trying to do. basically make a social network for coders. At Koding you get a free VM with full root access. It’s way more than just a free webhost. The only drawback (for my current needs) is that the VM shuts down 20 minutes after you log off. I’ll probably sign up for this later, but for what I need this isn’t it.
These guys are probably the most well known free web hosting company. They’ve been in the business for a long time and they are well known. However, be warned, they delete your site with no warning whatsoever. I created two sites to test them out installing WordPress and some plugins. A few weeks later I was ready to point my domain there but I couldn’t log in. The forget password portion simply said the account with my email doesn’t exist. I assume my account was deleted for inactivity, but I have no idea.
by Webhead
If you want to localize a plugin or theme or even just change some wording around, or if you are starting from scratch the easiest thing to do is install the Codestyle Localization plugin.
If starting from scratch, just make sure your plugin or theme loads the file using
[prettify class=”php”] <?php load_plugin_textdomain( $domain, $abs_rel_path, $plugin_rel_path ) ?> [/prettify]
Once that line of code is in the plugin or theme go to Tools->Localization and you should see your plugin or theme listed.
Find your plugin or theme and click on the Add New Language buttton.
Click Rescan. Have it scan the files.
Click Edit
Click on generate mo-file.
Then you’re all done.
by Webhead
After 9 years, I thought I’d update this list of tools. Only a few passed the test of time:
Virtual Box is still used occasionally, but tools like BrowserStack is enough and IE not being used (finally) helps too.
Dropbox is still worthy to use, but Google Drive is much easier to use. Although it’s not in the list because I don’t use it much.
This week I had to temporarily work on a new laptop so I had to set up my dev environment from scratch. Of course, I wanted the same tools and apps I had on my permanent environment. I find that these tools and apps stick with you for some time so below is a list of apps that I needed to install on my new development environment.
by Webhead
Using the Codestyling Localization plugin and some steps from this awesome post, replace text in WordPress or any plugin is easy. Install the plugin follow the steps and you’re done.
http://www.ostraining.com/blog/wordpress/language-strings-wordpress/
by Webhead
A lot of scripts and even styles can be retrieved from google’s cdn. Save yourself some time, save your server some time, and save your visitors some time.
http://stackoverflow.com/questions/820412/downloading-jquery-css-from-googles-cdn
Use the Use Google Libraries plugin.