THE PENDING DRAFT

W3C Mobile Checker

June 28, 2015

The Mobile Checker is a tool for Web developers who want to make their Web page or Web app work better on mobile devices.

The W3C released a tool to check your mobile websites. Pretty sweet.

W3C Mobile Checker

WordPress Plugin – Airplane Mode

June 27, 2015

WordPress makes a whole bunch of connections when you are using the Dashboard. For example to fetch external files like fonts or to display the latest news and so forth. While this is convenient in most situations, it can completely slow you down or lead to error messages when you are on a slow/unstable connection or don’t have a connection at all, as we had this week. The solution to this is called Airplane Mode, a WordPress Plugin by Andrew Norcross which disables all external calls from WordPress.

Control loading of external files when developing locally. WP loads certain external files (fonts, Gravatar, etc.) and makes external HTTP calls. This isn’t usually an issue, unless you’re working in an evironment without a web connection. This plugin removes/unhooks those actions to reduce load time and avoid errors due to missing files.

GitHub – Airplane Mode

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

Brainpickings Legendary Designer Charles Eames

June 20, 2015

In addition to all of the “good goods” that they produced, the Eameses were prolific as educators, making many important contributions to the world of ideas.

Underlying all of their work is the principle that design should not be an act of creative self-expression but rather a process of problem solving.

Great article on brainpickings about Charles and Ray Eames. Now i want to read “an eames anthology” even more.

Brainpickings – Legendary Designer Charles Eames on Creativity, the Value of the Arts in Education, and His Advice to Students