Self-contradictory hungers

“I came into the world. Free by nature, in the image of God, I was nevertheless the prisoner of my own violence and my own selfishness, in the image of the world into which I was born. That world was the picture of Hell, full of men like myself, loving God, and yet hating him; born to love him, living instead in fear of hopeless self-contradictory hungers”

Thomas Merton

I had not seen this quote until Pope Francis included it in his speech to Congress yesterday. Regardless of religious belief, I think it’s easy to identify with the sentiment. As a parent, I see this play out in the lives of my girls daily.

In all things, trying to be intentional about choosing the better hungers is a noble aim. Thanks for the reminder, Pope.

RICG Responsive Images Version 2.3

Happy Monday everyone. Version 2.3 of the RICG Responsive Images Plugin for WordPress just launched with a few notable new features and bunch of smaller improvements.

Gallery support

As of version 2.3, images inside galleries will now include srcset and sizes attributes.

We’ve added this support by moving the filter from post_thumbnail_html to wp_get_attachment_image_attributes, so if you’re a developer and had previously been manually overriding the post_thumbnail_htmil filter, you’ll now want update your code to reflect this change.

Advanced image compression

If you’re a web developer who cares about optimizing the file size of the images you’re serving your users—and I know you are—then you may be underwhelmed by the native image compression settings WordPress uses when creating different size crops of an image you’ve uploaded.

Dave Newton, the RICG’s resident compression wizard, has come up with a better algorithm for Imagemagick, which we’ve included in this version of the plugin as an experimental opt-in feature. To enable better image compression on your site, you’ll need to add support by including something like this in your functions.php file:

function custom_theme_setup() {
add_theme_support( 'advanced-image-compression' );
add_action( 'after_setup_theme', 'custom_theme_setup' );

The advanced compression settings are a bit more resource heavy than WordPress’s default settings, but the savings are significant. Give it a spin and let us know what you think.

Additional updates

  • The plugin is now officially included in the list of Beta Testing plugins in
  • Upgraded to Picturefill 2.3.1
  • Improved performance of `get_srcset_array`
  • Fixed a bug where duplicate images sources could be included in `srcset` attributes
  • Fixed a bug where some image sources were being dropped when changing image sizes in the editor.

If you want to provide feedback or get involved in the project, you can check out the GitHub repo and find us in the #feature-respimage channel of the WordPress Slack team.

Link: A Developer’s Guide to Contributing to WordPress Core

Source: A Developer’s Guide to Contributing to WordPress Core

Ian Jones recently published one of the best articles on contributing to WordPress Core that I’ve ever seen. The only two issues I saw with the post were addressed by Drew Jaynes (WP 4.2 release lead) in the first comment. I was going to write my own guide, but now I don’t have to.

A WordPress filter to avoid widows in your titles

When you’re a designer who codes (or a developer who designs), you end up obsessing over stupid things like making sure you don’t end up with widows in your titles (a single word that wraps to a new line).

Here’s a small filter you can throw in your functions.php file to replace the last space in your titles with a   character.

Coach Welker

I would guess that almost everyone has a favorite teacher—an individual who impacted their life in a profound way. I’ve been fortunate to have several such teachers, but today my thoughts are on one in particular.

Jeff Welker was a high school history teacher and football coach. A man deeply dedicated to his profession and to the students for which he practiced his craft. He was passionate about American history and it showed in the way he was able to bring to life the lessons of the past.

His classroom was decorated with military paraphernalia, including an old artillery shell that he would drop on the desk of any unsuspecting student who made the mistake of falling asleep during one of his lectures. A rude awakening perhaps, but a powerful lesson about the importance of remaining present, mentally, in order to learn about the world around you.

That lesson about remaining present made a lasting impression on me as a 16 year old. Coach Welker didn’t just feed us historical facts from a textbook and expect us to memorize the names and dates contained within. Instead, he taught us to hold all the answers at arms length, to be present enough to examine each bit of information critically instead of accepting each as an infallible truth.

In short, he gave me the power to ask tough questions. And this power shook my mind with the impact of that old artillery shell, waking me from the slumber of adolescence to begin seeing the world through my own eyes.

Jeff Welker passed away yesterday in his home. Taken from this world earlier than anyone would have hoped. Even so, the impact that he had on the lives of countless students like myself continues to resonate as a living testimony to the gift his life was to his students. I am grateful to have been a recipient of that gift.