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?

Advertisements
Categories
Technology

Have A Cupcake From Qué Bueno!

Vanessa’s Qué Bueno Bakery is the latest Unicode Adopt-a-Character sponsor!

Unicode is the non-profit responsible for coordinating the Unicode Standard, which specifies how to encode text in virtually every modern electronic system. It is how every computer knows that when I type an “A” it should be an “A” everywhere. In addition to the standard alphabets that most English or Romantic language speakers are used to, the Standard sets Han characters (the unified character set for Korean, Japanese, and Chinese) and fun stuff like Emoji. More importantly, Unicode also standardizes a lot of far lesser-used text characters that helps promote continued scholarship and electronic usage for languages and character sets most of us have never heard from.

Just from Unicode 11, announced the first week of June, there were a number of areas with added support:

  • For the Mazahua language, a Mesoamerican language recognized by law in Mexico
  • For Mayan numerals used in printed materials in Central America
  • For Sanskrit manuscripts written in Bengali
  • For Gurmukhi manuscripts
  • For historic documents of the Buryats of the Barguzin Steppe

While people love emoji these days and they would likely get made either way, supporting Unicode enables support for these lesser-known scripts, which is pretty darn cool in my book.

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.

Categories
Microblog Reflections Technology

Google’s AI Will Call Places For You

This video from Google I/O today is mind-blowing. In it, Google shows off an in-development feature where Google Assistant will call some places to interact with someone on your behalf.

“Google, please make me an appointment for a haircut on Tuesday.” Ideally, I would expect Google to interact with an API that ties into the salon’s scheduling platform but so many places do not have that. In that case, Google could call and naturally interact with someone to place the appointment.

Watching this in action—I’m just amazed.

Categories
Microblog Technology

Venmo’s Defaults

Venmo’s default settings are very uncomfortable. I’ve never used this payment service by PayPal before and, by default, I am friends with all of my phone’s contacts—I opted out of linking to Facebook—and I would automatically make public anytime I exchanged money. Not only to my “friends”, but totally public.

I shouldn’t know that someone I worked with 20 years ago gave someone else money to fix their hot water heater.