Categories
WordPress

Happy Birthday WordPress!

Yesterday marked the 17th anniversary of the first release of WordPress. I didn’t use WordPress back then—I didn’t find my way to it until it was a youthful four years old in 2007.

In the 13 years since, the software has made a major impact of my life, sure, but the community around it has a greater impact. The community is what hooked me into using it and helped me grow as from a shade-tree tinkerer to working as a full-time developer at Automattic.

I didn’t appreciate the nuance of software licenses back then. I hadn’t heard about the four freedoms of software. For me, once I understood the idea, I was hooked. It just made sense.

Thanks WordPress and, more importantly, all the people behind it for 17 years of community and open source.

Advertisements
Categories
WordPress

Jetpack’s Publicize Now Uses Twitter Cards

A long time ago, Jetpack’s Publicize feature—which automatically posts to your social media platforms when you publish a new post—started attaching an image to your tweets to help them catch people’s attention.

At the time, a tweet with a picture would perform better than a tweet with just a link.

This is all fine and good, but a lot has changed since Jetpack started doing that. Twitter cards, if nothing else, not only were developed but were opened up to all (remember when you used to have to opt-in?). When you attach media, that’s the “special” part of your tweet. The Twitter Card, rendered from the meta tags on your post, is not displayed.

Today, effective for all versions of Jetpack and all WordPress.com sites, Publicize will no longer attach a picture to your tweet, instead allowing Twitter to display the Twitter card it renders.

If you want to return to the old way and are on Jetpack 8.5 (released today) or WordPress.com Business, you can add a small code snippet to change it.

add_filter( 'jetpack_publicize_options', function( $option ) { 
    $option['attach_media'] = true;
    return $option;
} );

This filter will, in the end, notify WordPress.com’s server of your preference and use it for future Publicize posts.

Questions about Jetpack’s Publicize feature? There is a team of Happiness Engineers ready to help!

Categories
Microblog Personal WordPress

I’m a Code Wrangler

This is old news at this point, but I realized I never mentioned it here. A few months back, I shifted from a Happiness Lead to a developer.

I’m excited about the move and especially that I’m able to continue to work on Jetpack. I’ve always worked with the code powering Jetpack, but usually minor things that I discovered through working directly with our customers.

My goal isn’t to create some sweeping new feature, but to make steady, solid improvements to Jetpack. Small fixes that improve what real people are seeing with the project are beautiful things.

Of course, my tinkering is on hold a bit while on paternity leave and being on the sidelines while WordPress 5.0 ships isn’t easy! There is so much to learn, explore, and create in the space with the Block Editor, but I’ll be slinging code again soon!

Categories
Featured Technology WordPress

🧁 WordPress Adds Emoji 11 Support

Note: This post is regarding upcoming WordPress 4.9.8 and this is not applicable to production sites… yet.

In WordPress 4.9.8, among the improvements will be support for the latest Emoji 11 release. WordPress, technically, has already supported it—you’ve been able to add a 🦸 or 🦹 character even since general emoji support was added. One of the pieces of emoji support within WordPress was using the Twemoji library to polyfill emoji that your operating system didn’t support.

In other words, while you can add any Unicode character to your post, it is generally up to your operating system to support it, except for emoji, which WordPress provides a backwards-compatible way for them to display. Emoji 11 went live in early June and WordPress 4.9.7 adds support for the polyfill for these new emoji. Have an old computer? Apple hasn’t released a new version of OS X yet? You’re not on Android P, which is only in development anyhow? No problem, WordPress has your back.

So, no matter if you’re in the heat of summer 🥵 or the dead of winter 🥶, or if you’re 🥺 or 🥳, WordPress is here for you. There are a lot more than just a few smileys or the all-important cupcake 🧁. There are a ton of science-related emoji 🧬 and 🥎 to supplement the existing ⚾️.

If you’re reading this while, um, doing something else ( 🧻 ), Emojipedia has a great run down of the new emoji, specifically as presented by Twemoji.

I’m a little excited by the cupcake emoji, so I decided to use real cupcakes to help make it happen…. These baked goods would be from my wife, Vanessa’s own Qué Bueno Bakery, which is a bronze level Unicode sponsor for the cupcake emoji.

Okay, maybe I’m more than a little excited.

If you’re a 🦸 and testing out Gutenberg, the emoji won’t yet render when editing a post. There’s an issue for it—need to find a good way to ensure the emoji aren’t saved as images when they’re rendered via Twemoji.

What is your favorite new emoji coming soon to your WordPress site?

Categories
Technology WordPress

Customizing the Privacy Policy link in Genesis eNews Extended

You put together a brand new fancy Privacy Policy page on your WordPress 4.9.6+ site and are ready to include a link to is using the latest version of Genesis eNews Extended. That’s great!

This is a brand new feature, though, so themes aren’t styling for it yet. What can you do?

Styling

Using the Customizer via Apperarance->Customize within WP-Admin, you can add a small bit of “Additional CSS” to change this link’s styling however you’d like. The link is within a small html tag with a class of enews-privacy  with the a tag itself having the WordPress-wide privacy-policy-link class.

In other words, you can target specifically the eNews privacy link with something like:

.enews-privacy a.privacy-policy-link {
color: green;
}

Other CSS selectors, such as the a:focus and so on can be used too.

Changing the text

The text and the link itself is set by WordPress. You can use the the_privacy_policy_link filter (inline docs) to update the entire HTML block or the privacy_policy_url filter (inline docs) to update the overall link or only the URL. Alternative, you can update only the text by using the gettext filter (docs).

For example:

<?php // do not include in an existing php file

// This one works great if this is a secondary site of a company with one central privacy page. Example: Jetpack's site might want the link to always go to automattic.com/privacy/
function bk_change_the_url_only( $url ) {
return 'https://example.com/privacy/';
}

add_filter( 'privacy_policy_url', 'bk_change_the_url_only' );
Categories
Featured Technology WordPress

Genesis eNews Extended 2.1 Released

Genesis eNews Extended 2.1 is now available on WordPress.org. It has been a couple of years since a new version has been released—frankly, the plugin just works and it hasn’t needed much work.

Please note this version requires WordPress 4.9.6 and will not be offered unless you’re running WordPress 4.9.6+.

The European Union is preparing to implement this week their new data protection law, GDPR, which impacts Genesis eNews Extended and WordPress. If you have WordPress 4.9.6, released last week, you can setup a privacy policy page which Genesis eNews Extended will provide a link to under the subscription form, if you choose.

The feature respects the WordPress setting for the privacy page, as well as the various hooks implemented as part of the new feature for both the text of the link and the link itself. If any themes or plugins filters these value, the widget will use the same values to help site administrators set once and forget.

On a related note, I’ve fielded a few questions about how to add a checkbox to the widget for GDPR compliance. From my best understanding, this is not required. A subscription form that is exclusively for an e-mail subscription does not require a checkbox to confirm the visitor intent, since the action they are doing is the one and the same. If a form exists for any other purpose, then there does need to be a checkbox to confirm the visitor intent to also subscribe to a list.

Because of this, I am not adding an option to add a subscription confirmation checkbox to Genesis eNews Extended. It is meant to be a very simple plugin exclusively for newsletter subscriptions and while site owners are free to use it for other purposes, I’m only building and supporting the intended use as a mailing list subscription form “wrapper” that allow Genesis theme styles to have an easy time theming a “standard” subscription form.

Update: 2.1.1 was also released to fix a small issue with a bit of extra code displaying on the front end.