THE PENDING DRAFT

Cloud Source Repositories by Google

July 8, 2015

Fully-featured private Git repositories hosted on Google Cloud Platform. Browse, edit and commit repository files in our integrated source editor. Activate the Cloud Debugger to debug hosted applications during runtime.

Google quietly launched a GitHub competitor. Could be an interesting option, if you need hosting for private repositories and don’t want or can’t pay for a GitHub Account.

Google Cloud Source Repositories

Sanitize Text Field with Multiple Lines in WordPress

June 26, 2015

I recently ran into a problem where we had a text field in a metabox, that was meant to be able to hold multiple paragraphs of text, but still be properly sanitized.

The text sanitization (sanitize_text_field) removes all tags, including line-breaks, so i had to find a workaround. This is the best solution i found:

$pdr_multiline_text = implode( "\n", array_map( 'sanitize_text_field', explode( "\n", $_POST['pdr_text_field'] ) ) );

Basically, what it does is breaking up the given string into smaller chunks on line-breaks (Implode on "\n"), then sanitize those smaller strings using sanizite_text_field() and then put them back together (explode on "\n").

Stackoverflow – How to sanitize multi-line text from a textarea without losing line breaks?

Xdebug with WordPress

June 24, 2015

Proper debugging and unit testing are both very high on my list of things i need to get my head around and implement into my development workflow as soon as possible. Luckily, there are people like Jonathan Christopher who wrote this great introduction on how to use Xdebug for WordPress Development.

He goes into great detail on how to install and configure Xdebug with MAMP (Pro) and use it with either a separate application or right inside an IDE.

Monday by Noon – Improving Your Process: WordPress Development Using Xdebug

CSS-Tricks: Performance Tools

June 8, 2015

A comprehensive list of tools and WebApps related to Web Site Performance and Optimization, catalogued by CSS-Tricks.

Weekend roundup time! From the multitude of Grunt and Gulp plugins to web apps that can help us visualize our websites with data, learning all the ins and outs of performance tooling is tough. I thought it might be useful to catalogue as many tools out there as I could find.

CSS-Tricks – Performance Tools

Scott Bolinger on the WordPress Theme Business

June 2, 2015

Scott Bolinger on the challenges running a WordPress Theme Business, how it changed over time and about the differences between selling Themes, Plugins or a SaaS Product.

Keep in mind SaaS is not free money, it comes with lots of unique challenges. My experience with Reactor has been that SaaS is a more difficult business model in the short-term, but the revenue potential is higher long-term.

A very good read for anyone thinking about entering one of those markets.

The WordPress Theme Business, Then and Now